commit | 90ed8a6d71b2d6e0853c14e8e6f85fe730a4329a | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Wed Jun 24 00:34:07 2020 +0200 |
committer | GitHub <noreply@github.com> | Wed Jun 24 00:34:07 2020 +0200 |
tree | d0142c2ad764ad5381218ecb462493f78872e137 | |
parent | f363d0a6e9cfa50677a6de203735fbc0d06c2f49 [diff] |
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().