summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2024-06-03 23:09:18 (GMT)
committerGitHub <noreply@github.com>2024-06-03 23:09:18 (GMT)
commit105f22ea46ac16866e6df18ebae2a8ba422b7f45 (patch)
tree951635606bbcfabc55b8dfabe81fdf07ae748db8 /Python
parentdba7a167dbbd50e83e58df351f3414b7a08e0188 (diff)
downloadcpython-105f22ea46ac16866e6df18ebae2a8ba422b7f45.zip
cpython-105f22ea46ac16866e6df18ebae2a8ba422b7f45.tar.gz
cpython-105f22ea46ac16866e6df18ebae2a8ba422b7f45.tar.bz2
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.
Diffstat (limited to 'Python')
-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);
}