From: Guido van Rossum Date: Sat, 18 Jan 1997 08:04:16 +0000 (+0000) Subject: Intern the string "__complex__". X-Git-Tag: v1.5a1~466 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d751616710f480833e87c5b752a4d2aecee58a1;p=thirdparty%2FPython%2Fcpython.git Intern the string "__complex__". --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 0eaf4edf23b2..b3cb6f76f0e9 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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; }