bpo-46541: Discover the global strings. by ericsnowcurrently · Pull Request #31346 · python/cpython
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.