mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[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 105f22ea46
, AKA gh-119929)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
parent
c348e27cc1
commit
e5fb3a2385
13 changed files with 384 additions and 169 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue