Feature or enhancement
Following https://github.com/ericsnowcurrently/multi-core-python/wiki/0-The-Plan we need to convert _zoneinfo to use module state.
Pitch
Right now there are several global objects:
|
static PyObject *io_open = NULL; |
|
static PyObject *_tzpath_find_tzfile = NULL; |
|
static PyObject *_common_mod = NULL; |
and
|
static PyObject *TIMEDELTA_CACHE = NULL; |
|
static PyObject *ZONEINFO_WEAK_CACHE = NULL; |
|
static StrongCacheNode *ZONEINFO_STRONG_CACHE = NULL; |
|
static size_t ZONEINFO_STRONG_CACHE_MAX_SIZE = 8; |
|
|
|
static _ttinfo NO_TTINFO = {NULL, NULL, NULL, 0}; |
And one static type definition:
|
static PyTypeObject PyZoneInfo_ZoneInfoType; |
If this is indeed planned to be fixed, I would love to work on it.
Feature or enhancement
Following https://github.com/ericsnowcurrently/multi-core-python/wiki/0-The-Plan we need to convert
_zoneinfoto use module state.Pitch
Right now there are several global objects:
cpython/Modules/_zoneinfo.c
Lines 23 to 25 in 47ab848
and
cpython/Modules/_zoneinfo.c
Lines 96 to 101 in 47ab848
And one static type definition:
cpython/Modules/_zoneinfo.c
Line 93 in 47ab848
If this is indeed planned to be fixed, I would love to work on it.