Skip to content

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
@vstinner vstinner deleted the use_interp branch February 19, 2021 14:10
adorilson pushed a commit to adorilson/cpython that referenced this pull request 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.

3 participants