summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-23 12:07:52 (GMT)
committerGitHub <noreply@github.com>2020-06-23 12:07:52 (GMT)
commit261cfedf7657a515e04428bba58eba2a9bb88208 (patch)
treef242ee74773b9e46c63f0bf99e1ddc6b932a00b6 /Python
parentb4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0 (diff)
downloadcpython-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.c4
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);