mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-40521: Make the empty frozenset per interpreter (GH-21068)
Each interpreter now has its own empty frozenset singleton.
This commit is contained in:
parent
b4e85cadfb
commit
261cfedf76
5 changed files with 24 additions and 19 deletions
|
@ -1255,9 +1255,7 @@ finalize_interp_types(PyThreadState *tstate, int is_main_interp)
|
|||
_PyAsyncGen_Fini(tstate);
|
||||
_PyContext_Fini(tstate);
|
||||
|
||||
if (is_main_interp) {
|
||||
_PySet_Fini();
|
||||
}
|
||||
_PySet_Fini(tstate);
|
||||
_PyDict_Fini(tstate);
|
||||
_PyList_Fini(tstate);
|
||||
_PyTuple_Fini(tstate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue