]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-71587: Establish global state in `_datetime` (#110475)
authorErlend E. Aasland <erlend@python.org>
Thu, 12 Oct 2023 08:28:10 +0000 (10:28 +0200)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2023 08:28:10 +0000 (10:28 +0200)
commitec5622d1977c03960883547f7b8f55c26ac85df2
tree8196b8a2ac0535bdfa6c9491139670874f0688df
parentea530f2f9ae63e81c22a1818bec0a650ccf758d2
gh-71587: Establish global state in `_datetime` (#110475)

* Use explicit initialiser for m_base
* Add module state stub; establish global state on stack
* Put conversion factors in state struct
* Move PyDateTime_TimeZone_UTC to state
* Move PyDateTime_Epoch to state struct
* Fix ref leaks in and clean up initialisation
Modules/_datetimemodule.c
Tools/c-analyzer/cpython/globals-to-fix.tsv