diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-23 22:10:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 22:10:40 (GMT) |
commit | f363d0a6e9cfa50677a6de203735fbc0d06c2f49 (patch) | |
tree | 9092c9d82a215dcfce789e4ad81ac2b4e8be2fed /Python | |
parent | d051801052211b533c46a593b1c1bccf649a171c (diff) | |
download | cpython-f363d0a6e9cfa50677a6de203735fbc0d06c2f49.zip cpython-f363d0a6e9cfa50677a6de203735fbc0d06c2f49.tar.gz cpython-f363d0a6e9cfa50677a6de203735fbc0d06c2f49.tar.bz2 |
bpo-40521: Make empty Unicode string per interpreter (GH-21096)
Each interpreter now has its own empty Unicode string singleton.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pylifecycle.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index f0b40b3..eda4c6a 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -595,11 +595,9 @@ pycore_init_types(PyThreadState *tstate) return _PyStatus_ERR("can't init longs"); } - if (is_main_interp) { - status = _PyUnicode_Init(); - if (_PyStatus_EXCEPTION(status)) { - return status; - } + status = _PyUnicode_Init(tstate); + if (_PyStatus_EXCEPTION(status)) { + return status; } status = _PyExc_Init(tstate); |