Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Port zoneinfo module to use module state #99138

Closed
Assignees
sobolevn
@sobolevn

Description

@sobolevn

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:

staticPyObject*io_open=NULL;
staticPyObject*_tzpath_find_tzfile=NULL;
staticPyObject*_common_mod=NULL;

and

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:

staticPyTypeObjectPyZoneInfo_ZoneInfoType;

If this is indeed planned to be fixed, I would love to work on it.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp