]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40521: Make Unicode latin1 singletons per interpreter (GH-21101)
authorVictor Stinner <vstinner@python.org>
Wed, 24 Jun 2020 00:22:21 +0000 (02:22 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Jun 2020 00:22:21 +0000 (02:22 +0200)
commit2f9ada96e0d420fed0d09a032b37197f08ef167a
tree7b358df9980ee0e83c91d9e40626a5ccfd6d6a02
parentbbf36e8903f8e86dcad8131c818e122537c30f9e
bpo-40521: Make Unicode latin1 singletons per interpreter (GH-21101)

Each interpreter now has its own Unicode latin1 singletons.

Remove "ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS"
and "ifdef LATIN1_SINGLETONS": always enable latin1 singletons.

Optimize unicode_result_ready(): only attempt to get a latin1
singleton for PyUnicode_1BYTE_KIND.
Include/internal/pycore_interp.h
Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst
Objects/unicodeobject.c