Skip to content

gh-154738: Propagate reparse-deferral setting to pyexpat subparsers#154739

Open
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:pyexpat-subparser-reparse-deferral
Open

gh-154738: Propagate reparse-deferral setting to pyexpat subparsers#154739
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:pyexpat-subparser-reparse-deferral

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

ExternalEntityParserCreate copied every parent field onto the subparser except reparse_deferral_enabled. PyObject_GC_New does not zero the struct, so the field was read uninitialized and GetReparseDeferralEnabled() returned garbage. Copy it from the parent, matching newxmlparseobject and Expat's own inherited C-level state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant