[issue40839] Disallow calling PyDict_GetItem() with the GIL released
STINNER Victor
report at bugs.python.org
Sun Feb 21 06:08:13 EST 2021
STINNER Victor <vstinner at python.org> added the comment:
I made a similar change in _PyDict_GetItemHint():
commit d5fc99873769f0d0d5c5d5d99059177a75a4e46e (HEAD -> master, upstream/master)
Author: Victor Stinner <vstinner at python.org>
Date: Sun Feb 21 12:02:04 2021 +0100
bpo-42093: Cleanup _PyDict_GetItemHint() (GH-24582)
* No longer save/restore the current exception. It is no longer used
with an exception raised.
* No longer clear the current exception on error: it's now up to the
caller.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40839>
_______________________________________
More information about the Python-bugs-list
mailing list