Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

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.

----------
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue27946>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to