mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-40521: Make empty Unicode string per interpreter (GH-21096)
Each interpreter now has its own empty Unicode string singleton.
This commit is contained in:
parent
d051801052
commit
f363d0a6e9
12 changed files with 130 additions and 90 deletions
|
@ -1,10 +1,6 @@
|
|||
#ifndef STRINGLIB_STRINGDEFS_H
|
||||
#define STRINGLIB_STRINGDEFS_H
|
||||
|
||||
#ifndef STRINGLIB_GET_EMPTY
|
||||
# error "STRINGLIB_GET_EMPTY macro must be defined"
|
||||
#endif
|
||||
|
||||
/* this is sort of a hack. there's at least one place (formatting
|
||||
floats) where some stringlib code takes a different path if it's
|
||||
compiled as unicode. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue