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.
This commit is contained in:
@@ -15522,9 +15522,9 @@ unicode_is_finalizing(void)
|
||||
void
|
||||
_PyUnicode_FiniTypes(PyInterpreterState *interp)
|
||||
{
|
||||
_PyStaticType_Dealloc(interp, &EncodingMapType);
|
||||
_PyStaticType_Dealloc(interp, &PyFieldNameIter_Type);
|
||||
_PyStaticType_Dealloc(interp, &PyFormatterIter_Type);
|
||||
_PyStaticType_FiniBuiltin(interp, &EncodingMapType);
|
||||
_PyStaticType_FiniBuiltin(interp, &PyFieldNameIter_Type);
|
||||
_PyStaticType_FiniBuiltin(interp, &PyFormatterIter_Type);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user