]> granicus.if.org Git - python/commit
bpo-30860: Consolidate stateful runtime globals. (#3397)
authorEric Snow <ericsnowcurrently@gmail.com>
Fri, 8 Sep 2017 05:51:28 +0000 (23:51 -0600)
committerGitHub <noreply@github.com>
Fri, 8 Sep 2017 05:51:28 +0000 (23:51 -0600)
commit2ebc5ce42a8a9e047e790aefbf9a94811569b2b6
treef8c483f24e0d1ee43ac5cc9ad82d2ee7cccf69d2
parentbab21faded31c70b142776b9a6075a4cda055d7f
bpo-30860: Consolidate stateful runtime globals. (#3397)

* group the (stateful) runtime globals into various topical structs
* consolidate the topical structs under a single top-level _PyRuntimeState struct
* add a check-c-globals.py script that helps identify runtime globals

Other globals are excluded (see globals.txt and check-c-globals.py).
72 files changed:
Include/ceval.h
Include/internal/ceval.h [new file with mode: 0644]
Include/internal/condvar.h [new file with mode: 0644]
Include/internal/gil.h [new file with mode: 0644]
Include/internal/mem.h [new file with mode: 0644]
Include/internal/pymalloc.h [new file with mode: 0644]
Include/internal/pystate.h [new file with mode: 0644]
Include/internal/warnings.h [new file with mode: 0644]
Include/object.h
Include/pylifecycle.h
Include/pystate.h
Makefile.pre.in
Misc/NEWS.d/next/Core and Builtins/2017-09-05-13-47-49.bpo-30860.MROpZw.rst [new file with mode: 0644]
Modules/_functoolsmodule.c
Modules/_io/bufferedio.c
Modules/_json.c
Modules/_pickle.c
Modules/_threadmodule.c
Modules/_winapi.c
Modules/gcmodule.c
Modules/main.c
Modules/zipimport.c
Objects/abstract.c
Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/call.c
Objects/cellobject.c
Objects/classobject.c
Objects/descrobject.c
Objects/dictobject.c
Objects/exceptions.c
Objects/frameobject.c
Objects/funcobject.c
Objects/genobject.c
Objects/iterobject.c
Objects/listobject.c
Objects/memoryobject.c
Objects/methodobject.c
Objects/moduleobject.c
Objects/object.c
Objects/obmalloc.c
Objects/odictobject.c
Objects/setobject.c
Objects/sliceobject.c
Objects/tupleobject.c
Objects/typeobject.c
Objects/unicodeobject.c
PC/pyconfig.h
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Parser/myreadline.c
Parser/pgenmain.c
Python/_warnings.c
Python/ceval.c
Python/ceval_gil.h
Python/codecs.c
Python/condvar.h
Python/dynload_shlib.c
Python/errors.c
Python/import.c
Python/pylifecycle.c
Python/pystate.c
Python/pythonrun.c
Python/symtable.c
Python/sysmodule.c
Python/thread.c
Python/thread_nt.h
Python/thread_pthread.h
Python/traceback.c
Tools/c-globals/README [new file with mode: 0644]
Tools/c-globals/check-c-globals.py [new file with mode: 0644]
Tools/c-globals/ignored-globals.txt [new file with mode: 0644]