mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
Intern static string
Use float constructors instead of magic code for float constants
This commit is contained in:
parent
8e4997390c
commit
c8a0d2f368
2 changed files with 2 additions and 12 deletions
|
@ -215,7 +215,7 @@ join_list_unicode(PyObject *lst)
|
|||
ustr = PyUnicode_FromUnicode(&c, 0);
|
||||
}
|
||||
if (joinstr == NULL) {
|
||||
joinstr = PyString_FromString("join");
|
||||
joinstr = PyString_InternFromString("join");
|
||||
}
|
||||
if (joinstr == NULL || ustr == NULL) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue