]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117398: gh-119655: datetime: Init static state once & don't free it (GH-119662)
authorPetr Viktorin <encukou@gmail.com>
Tue, 28 May 2024 17:27:52 +0000 (19:27 +0200)
committerGitHub <noreply@github.com>
Tue, 28 May 2024 17:27:52 +0000 (17:27 +0000)
commita89fc26f4ac90156a1b108135f92dcf7698190f2
treec018ded14f0965a1c3f450b96c0bb101cd10bb96
parent6ec371223dff4da7719039e271f35a16a5b861c6
gh-117398: gh-119655: datetime: Init static state once & don't free it (GH-119662)

- While datetime uses global state, only initialize it once.
- While `capi` is static, don't free it (thanks @neonene in https://github.com/python/cpython/pull/119641/files#r1616710048)
Modules/_datetimemodule.c