]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43268: Pass interp rather than tstate to internal functions (GH-24580)
authorVictor Stinner <vstinner@python.org>
Fri, 19 Feb 2021 14:10:45 +0000 (15:10 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Feb 2021 14:10:45 +0000 (15:10 +0100)
commitbcb094b41f7fe4dd1686c50891d85632fcf0d481
tree72ae3916ace264f291a89f288ff199a36ead54f4
parenta486054b24658fa623e030ddd4cc0cbfcac54ab0
bpo-43268: Pass interp rather than tstate to internal functions (GH-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.
29 files changed:
Include/internal/pycore_ceval.h
Include/internal/pycore_context.h
Include/internal/pycore_gc.h
Include/internal/pycore_pylifecycle.h
Include/internal/pycore_warnings.h
Modules/atexitmodule.c
Modules/gcmodule.c
Objects/bytesobject.c
Objects/dictobject.c
Objects/exceptions.c
Objects/floatobject.c
Objects/frameobject.c
Objects/genobject.c
Objects/listobject.c
Objects/longobject.c
Objects/sliceobject.c
Objects/tupleobject.c
Objects/typeobject.c
Objects/unicodeobject.c
Python/_warnings.c
Python/bltinmodule.c
Python/ceval.c
Python/ceval_gil.h
Python/context.c
Python/import.c
Python/initconfig.c
Python/pylifecycle.c
Python/pystate.c
Python/sysmodule.c