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 serhiy.storchaka
Recipients Tim Mitchell, corona10, iritkatriel, serhiy.storchaka, tehybel
Date 2021-12-04.18:55:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638644125.36.0.00121739703253.issue27946@roundup.psfhosted.org>
In-reply-to
Content
The issue is no longer reproduced by the original test because of the cache for dict key tables. But it is not gone, and can be reproduced with modified test.

There may be many similar bugs in the Python core end extensions. Adding incref/decref in PyDict_GetItem and similar C API functions could fix many of them, but perhaps not all, and it would hit performance. I suppose modt of uses of PyDict_GetItem are safe.
History
Date User Action Args
2021-12-04 18:55:25serhiy.storchakasetrecipients: + serhiy.storchaka, tehybel, Tim Mitchell, corona10, iritkatriel
2021-12-04 18:55:25serhiy.storchakasetmessageid: <1638644125.36.0.00121739703253.issue27946@roundup.psfhosted.org>
2021-12-04 18:55:25serhiy.storchakalinkissue27946 messages
2021-12-04 18:55:25serhiy.storchakacreate