]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40521: Optimize PyUnicode_New(0, maxchar) (GH-21099)
authorVictor Stinner <vstinner@python.org>
Tue, 23 Jun 2020 22:34:07 +0000 (00:34 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Jun 2020 22:34:07 +0000 (00:34 +0200)
commit90ed8a6d71b2d6e0853c14e8e6f85fe730a4329a
treed0142c2ad764ad5381218ecb462493f78872e137
parentf363d0a6e9cfa50677a6de203735fbc0d06c2f49
bpo-40521: Optimize PyUnicode_New(0, maxchar) (GH-21099)

Functions of unicodeobject.c, like PyUnicode_New(), no longer check
if the empty Unicode singleton has been initialized or not. Consider
that it is always initialized. The Unicode API must not be used
before _PyUnicode_Init() or after _PyUnicode_Fini().
Objects/unicodeobject.c