]> granicus.if.org Git - python/commitdiff
Intern the string "__complex__".
authorGuido van Rossum <guido@python.org>
Sat, 18 Jan 1997 08:04:16 +0000 (08:04 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 18 Jan 1997 08:04:16 +0000 (08:04 +0000)
Python/bltinmodule.c

index 0eaf4edf23b29fb361d04ef7213037592c69f41d..b3cb6f76f0e9568a256a749204bf727cce95da51 100644 (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;
                }