Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 2, 2020
Merged

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

merged 1 commit into from
Jun 2, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 1, 2020

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

https://bugs.python.org/issue40839

@vstinner
Copy link
Member Author

vstinner commented Jun 1, 2020

cc @methane

Doc/c-api/dict.rst Outdated Show resolved Hide resolved
Doc/c-api/dict.rst Outdated Show resolved Hide resolved
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
Copy link
Member Author

vstinner commented Jun 2, 2020

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