Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Feature or enhancement
Followinghttps://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:
Lines 23 to 25 in47ab848
| staticPyObject*io_open=NULL; | |
| staticPyObject*_tzpath_find_tzfile=NULL; | |
| staticPyObject*_common_mod=NULL; |
and
Lines 96 to 101 in47ab848
| staticPyObject*TIMEDELTA_CACHE=NULL; | |
| staticPyObject*ZONEINFO_WEAK_CACHE=NULL; | |
| staticStrongCacheNode*ZONEINFO_STRONG_CACHE=NULL; | |
| staticsize_tZONEINFO_STRONG_CACHE_MAX_SIZE=8; | |
| static_ttinfoNO_TTINFO= {NULL,NULL,NULL,0}; |
And one static type definition:
Line 93 in47ab848
| staticPyTypeObjectPyZoneInfo_ZoneInfoType; |
If this is indeed planned to be fixed, I would love to work on it.
Metadata
Metadata
Assignees
Projects
Status
Done