◐ Shell
clean mode source ↗

bpo-46712: Share global string identifiers in deepfreeze by kumaraditya303 · Pull Request #31261 · python/cpython

ericsnowcurrently added a commit that referenced this pull request

Feb 15, 2022
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

@kumaraditya303

@blurb-it

gvanrossum

@kumaraditya303

gvanrossum

asvetlov pushed a commit that referenced this pull request

Feb 26, 2022
Where appropriate, deepfreeze.c now uses `&_Py_ID(blah)` references instead of locally defining constants. This saves some space.