Message407553
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? |
|
Date |
User |
Action |
Args |
2021-12-02 22:54:45 | iritkatriel | set | recipients:
+ iritkatriel, tehybel, Tim Mitchell |
2021-12-02 22:54:45 | iritkatriel | set | messageid: <1638485685.43.0.641959455764.issue27946@roundup.psfhosted.org> |
2021-12-02 22:54:45 | iritkatriel | link | issue27946 messages |
2021-12-02 22:54:45 | iritkatriel | create | |
|