commit | 261cfedf7657a515e04428bba58eba2a9bb88208 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Tue Jun 23 14:07:52 2020 +0200 |
committer | GitHub <noreply@github.com> | Tue Jun 23 14:07:52 2020 +0200 |
tree | f242ee74773b9e46c63f0bf99e1ddc6b932a00b6 | |
parent | b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0 [diff] [blame] |
bpo-40521: Make the empty frozenset per interpreter (GH-21068) Each interpreter now has its own empty frozenset singleton.
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 1b4a3db..aaea045 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c
@@ -1255,9 +1255,7 @@ _PyAsyncGen_Fini(tstate); _PyContext_Fini(tstate); - if (is_main_interp) { - _PySet_Fini(); - } + _PySet_Fini(tstate); _PyDict_Fini(tstate); _PyList_Fini(tstate); _PyTuple_Fini(tstate);