You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope this issue will complete _datetime isolation.
My concerns (and answers)
Py_MOD_PER_INTERPRETER_GIL_SUPPORTED should be applied in sync with _zoninfo?
YES: Possible.
Can a module state have a C-API structure, keeping a capsule just for comatibility?
NO: Possible, but a user should not touch the module state.
C-API supports only the main interpreter? Otherwise, PyInterpreterState is acceptable to point each structure?
NO: PyDateTimeAPI cannot emit an error. Also, no PyInterpreterState member is accessible from datetime.h. UPDATE: Seems to be possible by using a global function pointer instead of a function.
Feature or enhancement
Proposal:
I hope this issue will complete
_datetimeisolation.My concerns (and answers)
Py_MOD_PER_INTERPRETER_GIL_SUPPORTEDshould be applied in sync with_zoninfo?Can a module state have a C-API structure, keeping a capsule just for comatibility?
C-API supports only the main interpreter? Otherwise,
PyInterpreterStateis acceptable to point each structure?PyDateTimeAPIcannot emit an error. Also, noPyInterpreterStatemember is accessible fromdatetime.h. UPDATE: Seems to be possible by using a global function pointer instead of a function.Specific issue:
Links to previous discussion of this feature:
_datetime#102995_datetime#110475Linked PRs (closed)
Details
PyInterpreterState#118357Linked PRs
_strptimemodule in_datetime#120224