]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40268: Rename _PyInterpreterState_GET_UNSAFE() (GH-19509)
authorVictor Stinner <vstinner@python.org>
Tue, 14 Apr 2020 13:14:01 +0000 (15:14 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2020 13:14:01 +0000 (15:14 +0200)
commit81a7be3fa22c983209cc0ffb3537b92b0370f83c
treec257d7143ecc60574353caa76fa2992a455ebb54
parent4a3fe0835310643193ea45529ab0fb45c5f8f2fd
bpo-40268: Rename _PyInterpreterState_GET_UNSAFE() (GH-19509)

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.
23 files changed:
Include/cpython/pystate.h
Include/internal/pycore_pystate.h
Modules/_io/textio.c
Modules/_threadmodule.c
Modules/main.c
Modules/posixmodule.c
Modules/signalmodule.c
Objects/codeobject.c
Objects/moduleobject.c
Objects/unicodeobject.c
Parser/listnode.c
Python/_warnings.c
Python/ceval.c
Python/codecs.c
Python/dynload_shlib.c
Python/import.c
Python/pylifecycle.c
Python/pystate.c
Python/pythonrun.c
Python/sysmodule.c
Python/thread.c
Python/thread_nt.h
Python/thread_pthread.h