Intern the string "__complex__".

This commit is contained in:
Guido van Rossum 1997-01-18 08:04:16 +00:00
parent 7b89b6a660
commit 8d75161671

View File

@ -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;
}