]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117398: Use Per-Interpreter State for the _datetime Static Types (gh-119929)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 3 Jun 2024 23:09:18 +0000 (19:09 -0400)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2024 23:09:18 +0000 (17:09 -0600)
commit105f22ea46ac16866e6df18ebae2a8ba422b7f45
tree951635606bbcfabc55b8dfabe81fdf07ae748db8
parentdba7a167dbbd50e83e58df351f3414b7a08e0188
gh-117398: Use Per-Interpreter State for the _datetime Static Types (gh-119929)

We make use of the same mechanism that we use for the static builtin types.  This required a few tweaks.

The relevant code could use some cleanup but I opted to avoid the significant churn in this change.  I'll tackle that separately.

This change is the final piece needed to make _datetime support multiple interpreters.  I've updated the module slot accordingly.
13 files changed:
Include/internal/pycore_object.h
Include/internal/pycore_typeobject.h
Misc/NEWS.d/next/Library/2024-06-01-16-58-43.gh-issue-117398.kR0RW7.rst [new file with mode: 0644]
Modules/_datetimemodule.c
Objects/exceptions.c
Objects/object.c
Objects/structseq.c
Objects/typeobject.c
Objects/unicodeobject.c
Objects/weakrefobject.c
Python/crossinterp_exceptions.h
Tools/c-analyzer/cpython/globals-to-fix.tsv
Tools/c-analyzer/cpython/ignored.tsv