mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
Intern the string "__complex__".
This commit is contained in:
parent
7b89b6a660
commit
8d75161671
@ -317,7 +317,7 @@ builtin_complex(self, args)
|
||||
static object *complexstr;
|
||||
object *f;
|
||||
if (complexstr == NULL) {
|
||||
complexstr = newstringobject("__complex__");
|
||||
complexstr = PyString_InternFromString("__complex__");
|
||||
if (complexstr == NULL)
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user