summaryrefslogtreecommitdiffstats
path: root/Python/crossinterp_exceptions.h
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-03 23:37:28 (GMT)
committerGitHub <noreply@github.com>2024-06-03 23:37:28 (GMT)
commite5fb3a2385809f6cbdba2061b40fecf5b234f549 (patch)
tree67c4389e236f0864c2ce5fd4ed93703ced68cbe2 /Python/crossinterp_exceptions.h
parentc348e27cc1b1e7468f9c0c7d5d6e7f6160d25613 (diff)
downloadcpython-e5fb3a2385809f6cbdba2061b40fecf5b234f549.zip
cpython-e5fb3a2385809f6cbdba2061b40fecf5b234f549.tar.gz
cpython-e5fb3a2385809f6cbdba2061b40fecf5b234f549.tar.bz2
[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>
Diffstat (limited to 'Python/crossinterp_exceptions.h')
-rw-r--r--Python/crossinterp_exceptions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/crossinterp_exceptions.h b/Python/crossinterp_exceptions.h
index 6ecc10c..278511d 100644
--- a/Python/crossinterp_exceptions.h
+++ b/Python/crossinterp_exceptions.h
@@ -90,6 +90,6 @@ static void
fini_exceptions(PyInterpreterState *interp)
{
// Likewise with _fini_not_shareable_error_type().
- _PyStaticType_Dealloc(interp, &_PyExc_InterpreterNotFoundError);
- _PyStaticType_Dealloc(interp, &_PyExc_InterpreterError);
+ _PyStaticType_FiniBuiltin(interp, &_PyExc_InterpreterNotFoundError);
+ _PyStaticType_FiniBuiltin(interp, &_PyExc_InterpreterError);
}