]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46541: Discover the global strings. (gh-31346)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 15 Feb 2022 00:36:51 +0000 (17:36 -0700)
committerGitHub <noreply@github.com>
Tue, 15 Feb 2022 00:36:51 +0000 (17:36 -0700)
commit12360aa159c42c7798fd14225d271e6fd84db7eb
treead2b4f0d67c90a5a0be4ff532082fc3468d6d65b
parent278fdd3e3a2492665b2c2888fd2f428f7f59a3f5
bpo-46541: Discover the global strings. (gh-31346)

Instead of manually enumerating the global strings in generate_global_objects.py, we extrapolate the list from usage of _Py_ID() and _Py_STR() in the source files.

This is partly inspired by gh-31261.

https://bugs.python.org/issue46541
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init.h
Objects/typeobject.c
Objects/weakrefobject.c
Python/_warnings.c
Python/ast_opt.c
Python/compile.c
Python/pythonrun.c
Tools/scripts/generate_global_objects.py