diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-12-14 01:04:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 01:04:05 (GMT) |
commit | 121f1f893a39d0b58d3d2b5597505c154ecaac2a (patch) | |
tree | 2efda2489f892c98015cf80763369ea4f3505666 /Python/pylifecycle.c | |
parent | cb589d1b6bad4b75852c2e2a471a3800d5efdca7 (diff) | |
download | cpython-121f1f893a39d0b58d3d2b5597505c154ecaac2a.zip cpython-121f1f893a39d0b58d3d2b5597505c154ecaac2a.tar.gz cpython-121f1f893a39d0b58d3d2b5597505c154ecaac2a.tar.bz2 |
bpo-45953: Statically initialize the small ints. (gh-30092)
The array of small PyLong objects has been statically declared. Here I also statically initialize them. Consequently they are no longer initialized dynamically during runtime init.
I've also moved them under a new sub-struct in _PyRuntimeState, in preparation for static allocation and initialization of other global objects.
https://bugs.python.org/issue45953
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index a9eb387..22281a3 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -676,8 +676,6 @@ pycore_init_global_objects(PyInterpreterState *interp) { PyStatus status; - _PyLong_InitGlobalObjects(interp); - _PyFloat_InitState(interp); status = _PyBytes_InitGlobalObjects(interp); |