Skip to content

bpo-40268: Rename _PyInterpreterState_GET_UNSAFE()#19509

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:interp_get
Apr 14, 2020
Merged

bpo-40268: Rename _PyInterpreterState_GET_UNSAFE()#19509
vstinner merged 1 commit intopython:masterfrom
vstinner:interp_get

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Apr 14, 2020

Rename _PyInterpreterState_GET_UNSAFE() to _PyInterpreterState_GET()
for consistency with _PyThreadState_GET() and to have a shorter name
(help to fit into 80 columns).

Add also "assert(tstate != NULL);" to the function.

https://bugs.python.org/issue40268

Rename _PyInterpreterState_GET_UNSAFE() to _PyInterpreterState_GET()
for consistency with _PyThreadState_GET() and to have a shorter name
(help to fit into 80 columns).

Add also "assert(tstate != NULL);" to the function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants