summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-23 13:54:35 (GMT)
committerGitHub <noreply@github.com>2020-06-23 13:54:35 (GMT)
commitc41eed1a874e2f22bde45c3c89418414b7a37f46 (patch)
treee90ff0bf1c5349169f3f04c914695b3c4b476f37 /Python/pylifecycle.c
parent32f2eda85957365d208f499b730d30b7eb419741 (diff)
downloadcpython-c41eed1a874e2f22bde45c3c89418414b7a37f46.zip
cpython-c41eed1a874e2f22bde45c3c89418414b7a37f46.tar.gz
cpython-c41eed1a874e2f22bde45c3c89418414b7a37f46.tar.bz2
bpo-40521: Make bytes singletons per interpreter (GH-21074)
Each interpreter now has its own empty bytes string and single byte character singletons. Replace STRINGLIB_EMPTY macro with STRINGLIB_GET_EMPTY() macro.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index aaea045..4bb32ab 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -1262,9 +1262,7 @@ finalize_interp_types(PyThreadState *tstate, int is_main_interp)
_PySlice_Fini(tstate);
- if (is_main_interp) {
- _PyBytes_Fini();
- }
+ _PyBytes_Fini(tstate);
_PyUnicode_Fini(tstate);
_PyFloat_Fini(tstate);
_PyLong_Fini(tstate);