This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients Tim Mitchell, iritkatriel, tehybel
Date 2021-12-02.22:54:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638485685.43.0.641959455764.issue27946@roundup.psfhosted.org>
In-reply-to
Content
This is a bug in elementtree - the caller should own a reference to the dict during the entire PyDict_GetItem call.

We won't add the refcount change you propose because it's not free and this is a hot function. 

The test in your patch doesn't fail for me (I tried on version 3.11 on a Mac). Are you still seeing the problem on version >= 3.9, or perhaps it was fixed in eaementtree by now?
History
Date User Action Args
2021-12-02 22:54:45iritkatrielsetrecipients: + iritkatriel, tehybel, Tim Mitchell
2021-12-02 22:54:45iritkatrielsetmessageid: <1638485685.43.0.641959455764.issue27946@roundup.psfhosted.org>
2021-12-02 22:54:45iritkatriellinkissue27946 messages
2021-12-02 22:54:45iritkatrielcreate