mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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.
This commit is contained in:
parent
85339f5c22
commit
59d3dce69b
4 changed files with 37 additions and 30 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue