diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-23 12:07:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 12:07:52 (GMT) |
commit | 261cfedf7657a515e04428bba58eba2a9bb88208 (patch) | |
tree | f242ee74773b9e46c63f0bf99e1ddc6b932a00b6 /Python | |
parent | b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0 (diff) | |
download | cpython-261cfedf7657a515e04428bba58eba2a9bb88208.zip cpython-261cfedf7657a515e04428bba58eba2a9bb88208.tar.gz cpython-261cfedf7657a515e04428bba58eba2a9bb88208.tar.bz2 |
bpo-40521: Make the empty frozenset per interpreter (GH-21068)
Each interpreter now has its own empty frozenset singleton.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pylifecycle.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 @@ 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); |