Nick Coghlan <ncogh...@gmail.com> added the comment: On 31 December 2017 at 01:34, Paul Ganssle <rep...@bugs.python.org> wrote: > That said, I think it would be really good if we could get a fast path for > timezone creation and access to the UTC singleton into the Python 3.7 > release. I think it's kind of a big disparity between the Python and C APIs > that's existed for too long already.
It turns out the API already *is* exported as a capsule: https://github.com/python/cpython/blob/master/Include/datetime.h#L149 Our general guidance for capsule usage is just outdated, and the datetime API follows that dated advice: https://docs.python.org/3/extending/extending.html#providing-a-c-api-for-an-extension-module I'll file a separate issue for that docs problem later (the tracker is reporting 502 Proxy Error for me right now) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue10381> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com