Skip to content

bpo-40839: PyDict_GetItem() requires the GIL#20580

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:dict_getitem_gil
Jun 2, 2020
Merged

bpo-40839: PyDict_GetItem() requires the GIL#20580
vstinner merged 1 commit into
python:masterfrom
vstinner:dict_getitem_gil

Conversation

@vstinner

@vstinner vstinner commented Jun 1, 2020

Copy link
Copy Markdown
Member

The PyDict_GetItem() must now be called with the GIL held.

https://bugs.python.org/issue40839

@vstinner

vstinner commented Jun 1, 2020

Copy link
Copy Markdown
Member Author

cc @methane

Comment thread Doc/c-api/dict.rst Outdated
Comment thread Doc/c-api/dict.rst Outdated
Calling PyDict_GetItem() without GIL held had been allowed for
historical reason. It is no longer allowed.
@vstinner
vstinner merged commit 59d3dce into python:master Jun 2, 2020
@vstinner
vstinner deleted the dict_getitem_gil branch June 2, 2020 12:03
@vstinner

vstinner commented Jun 2, 2020

Copy link
Copy Markdown
Member Author

Thanks for the review @methane! I replaced your documentation my mine in all places ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants