]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39465: Use _PyInterpreterState_GET() (GH-20788)
authorVictor Stinner <vstinner@python.org>
Wed, 10 Jun 2020 18:08:26 +0000 (20:08 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2020 18:08:26 +0000 (20:08 +0200)
commit1bcc32f0620d2e99649a6d423284d9496b7b3548
treef42552bb9acbb5d9fd90b47f95a63487ab438262
parent9c24e2e4c10705d95258558348417a28007dac66
bpo-39465: Use _PyInterpreterState_GET() (GH-20788)

Replace _PyThreadState_GET() with _PyInterpreterState_GET() in:

* get_small_int()
* gcmodule.c: add also get_gc_state() function
* _PyTrash_deposit_object()
* _PyTrash_destroy_chain()
* warnings_get_state()
* Py_GetRecursionLimit()

Cleanup listnode.c: add 'parser' variable.
Include/internal/pycore_interp.h
Modules/gcmodule.c
Objects/longobject.c
Objects/object.c
Parser/listnode.c
Python/_warnings.c
Python/ceval.c