diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-02 12:03:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 12:03:25 (GMT) |
commit | 59d3dce69b0a4f6ee17578ae68037cc7ae90936f (patch) | |
tree | 72eaa3932f9ff7fc0a13752a1fe706666c6e87dd /Doc | |
parent | 85339f5c220a5e79c47c3a33c93f1dca5c59c52e (diff) | |
download | cpython-59d3dce69b0a4f6ee17578ae68037cc7ae90936f.zip cpython-59d3dce69b0a4f6ee17578ae68037cc7ae90936f.tar.gz cpython-59d3dce69b0a4f6ee17578ae68037cc7ae90936f.tar.bz2 |
bpo-40839: PyDict_GetItem() requires the GIL (GH-20580)
Calling PyDict_GetItem() without GIL held had been allowed for
historical reason. It is no longer allowed.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/dict.rst | 4 | ||||
-rw-r--r-- | Doc/whatsnew/3.10.rst | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 2fb29cd..7493837 100644 --- a/Doc/c-api/dict.rst +++ b/Doc/c-api/dict.rst @@ -100,6 +100,10 @@ Dictionary Objects :meth:`__eq__` methods will get suppressed. To get error reporting use :c:func:`PyDict_GetItemWithError()` instead. + .. versionchanged:: 3.10 + Calling this API without :term:`GIL` held had been allowed for historical + reason. It is no longer allowed. + .. c:function:: PyObject* PyDict_GetItemWithError(PyObject *p, PyObject *key) diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 95c5aa7..0b65647 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -148,5 +148,9 @@ Porting to Python 3.10 see :c:func:`Py_SET_SIZE()` (available since Python 3.9). (Contributed by Victor Stinner in :issue:`39573`.) +* Calling :c:func:`PyDict_GetItem` without :term:`GIL` held had been allowed + for historical reason. It is no longer allowed. + (Contributed by Victor Stinner in :issue:`40839`.) + Removed ------- |