bpo-40839: PyDict_GetItem() requires the GIL by vstinner · Pull Request #20580 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

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

edited by bedevere-bot

Loading

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

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

Reviewers

@methane methane methane approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@vstinner @methane @the-knights-who-say-ni @bedevere-bot