mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Intern the string "__complex__".
This commit is contained in:
parent
7b89b6a660
commit
8d75161671
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue