Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d75161

Browse files
committed
Intern the string "__complex__".
1 parent 7b89b6a commit 8d75161

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ builtin_complex(self, args)
317317
static object *complexstr;
318318
object *f;
319319
if (complexstr == NULL) {
320-
complexstr = newstringobject("__complex__");
320+
complexstr = PyString_InternFromString("__complex__");
321321
if (complexstr == NULL)
322322
return NULL;
323323
}

0 commit comments

Comments
 (0)