[issue10381] Add timezone support to datetime C API

Nick Coghlan report at bugs.python.org
Fri Dec 29 22:44:58 EST 2017


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Would it be possible to deprecate (or at least stop enhancing) the current datetime C API and add a new capsule based one instead?

We're trying to get extension module authors to *stop* relying on C level globals, since it causes problems with:

- memory usage analysis
- interpreter reinitialisation
- module reloading
- subinterpreters

Unfortunately, the current design of the datetime C API *requires* the use of C level global state.

----------
nosy: +ncoghlan

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue10381>
_______________________________________


More information about the Python-bugs-list mailing list