]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40521: Make bytes singletons per interpreter (GH-21074)
authorVictor Stinner <vstinner@python.org>
Tue, 23 Jun 2020 13:54:35 +0000 (15:54 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Jun 2020 13:54:35 +0000 (15:54 +0200)
commitc41eed1a874e2f22bde45c3c89418414b7a37f46
treee90ff0bf1c5349169f3f04c914695b3c4b476f37
parent32f2eda85957365d208f499b730d30b7eb419741
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.
13 files changed:
Include/internal/pycore_interp.h
Include/internal/pycore_pylifecycle.h
Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst
Objects/bytesobject.c
Objects/stringlib/README.txt
Objects/stringlib/asciilib.h
Objects/stringlib/partition.h
Objects/stringlib/stringdefs.h
Objects/stringlib/ucs1lib.h
Objects/stringlib/ucs2lib.h
Objects/stringlib/ucs4lib.h
Objects/stringlib/unicodedefs.h
Python/pylifecycle.c