mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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.
This commit is contained in:
parent
32f2eda859
commit
c41eed1a87
13 changed files with 96 additions and 53 deletions
|
|
@ -63,7 +63,7 @@ extern void _PyDict_Fini(PyThreadState *tstate);
|
|||
extern void _PyTuple_Fini(PyThreadState *tstate);
|
||||
extern void _PyList_Fini(PyThreadState *tstate);
|
||||
extern void _PySet_Fini(PyThreadState *tstate);
|
||||
extern void _PyBytes_Fini(void);
|
||||
extern void _PyBytes_Fini(PyThreadState *tstate);
|
||||
extern void _PyFloat_Fini(PyThreadState *tstate);
|
||||
extern void _PySlice_Fini(PyThreadState *tstate);
|
||||
extern void _PyAsyncGen_Fini(PyThreadState *tstate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue