Skip to content

Use PyDict_GetItemRef() in _elementtree.c - #158809

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:etree_getref
Oct 5, 2026
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:etree_getref

Conversation

@vstinner

@vstinner vstinner commented Oct 4, 2026

Copy link
Copy Markdown
Member

Replace PyDict_GetItemWithError() with PyDict_GetItemRef().

expat_default_handler() now holds a strong reference to value.

Replace PyDict_GetItemWithError() with PyDict_GetItemRef().

expat_default_handler() now holds a strong reference to value.
@vstinner
vstinner merged commit 047157b into python:main Oct 5, 2026
57 checks passed
@vstinner
vstinner deleted the etree_getref branch October 5, 2026 23:56
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