Skip to content

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

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

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

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

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