]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-117398: Use Per-Interpreter State for the _datetime Static Types (gh-120009)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 3 Jun 2024 23:37:28 +0000 (01:37 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2024 23:37:28 +0000 (23:37 +0000)
commite5fb3a2385809f6cbdba2061b40fecf5b234f549
tree67c4389e236f0864c2ce5fd4ed93703ced68cbe2
parentc348e27cc1b1e7468f9c0c7d5d6e7f6160d25613
[3.13] gh-117398: Use Per-Interpreter State for the _datetime Static Types (gh-120009)

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

This change is the final piece needed to make _datetime support multiple interpreters.  I've updated the module slot accordingly.

(cherry picked from commit 105f22ea46ac16866e6df18ebae2a8ba422b7f45, AKA gh-119929)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
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