summaryrefslogtreecommitdiffstats
path: root/Objects/structseq.c
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 /Objects/structseq.c
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 'Objects/structseq.c')
-rw-r--r--Objects/structseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c
index ec5c5ab..d8289f2 100644
--- a/Objects/structseq.c
+++ b/Objects/structseq.c
@@ -718,7 +718,7 @@ _PyStructSequence_FiniBuiltin(PyInterpreterState *interp, PyTypeObject *type)
return;
}
- _PyStaticType_Dealloc(interp, type);
+ _PyStaticType_FiniBuiltin(interp, type);
if (_Py_IsMainInterpreter(interp)) {
// Undo _PyStructSequence_InitBuiltinWithFlags().