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-43268: Pass interp rather than tstate #24580

Merged
merged 1 commit into from Feb 19, 2021
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 19, 2021

Pass the current interpreter (interp) rather than the current Python
thread state (tstate) to internal functions which only use the
interpreter.

Modified functions:

  • _PyXXX_Fini() and _PyXXX_ClearFreeList() functions
  • _PyEval_SignalAsyncExc()
  • make_pending_calls()
  • _PySys_GetObject(), sys_set_object(), sys_set_object_id(), sys_set_object_str()
  • should_audit(), set_flags_from_config(), make_flags()
  • _PyAtExit_Call()
  • init_stdio_encoding()
  • etc.

https://bugs.python.org/issue43268

Pass the current interpreter (interp) rather than the current Python
thread state (tstate) to internal functions which only use the
interpreter.

Modified functions:

* _PyXXX_Fini() and _PyXXX_ClearFreeList() functions
* _PyEval_SignalAsyncExc()
* make_pending_calls()
* _PySys_GetObject(), sys_set_object(), sys_set_object_id(), sys_set_object_str()
* should_audit(), set_flags_from_config(), make_flags()
* _PyAtExit_Call()
* init_stdio_encoding()
* etc.
@vstinner vstinner merged commit bcb094b into python:master Feb 19, 2021
10 checks passed
@vstinner vstinner deleted the use_interp branch Feb 19, 2021
adorilson pushed a commit to adorilson/cpython that referenced this issue Mar 13, 2021
…onGH-24580)

Pass the current interpreter (interp) rather than the current Python
thread state (tstate) to internal functions which only use the
interpreter.

Modified functions:

* _PyXXX_Fini() and _PyXXX_ClearFreeList() functions
* _PyEval_SignalAsyncExc(), make_pending_calls()
* _PySys_GetObject(), sys_set_object(), sys_set_object_id(), sys_set_object_str()
* should_audit(), set_flags_from_config(), make_flags()
* _PyAtExit_Call()
* init_stdio_encoding()
* etc.
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.

None yet

3 participants