diff Python/bltinmodule.c @ 5010:f0cf8d275fbc legacy-trunk

Intern the string "__complex__".
author Guido van Rossum <guido@python.org>
date Sat, 18 Jan 1997 08:04:16 +0000
parents c75a2f2dc220
children cb7aadd9d9f2
line wrap: on
line diff
--- a/Python/bltinmodule.c	Sat Jan 18 08:02:57 1997 +0000
+++ b/Python/bltinmodule.c	Sat Jan 18 08:04:16 1997 +0000
@@ -317,7 +317,7 @@
 		static object *complexstr;
 		object *f;
 		if (complexstr == NULL) {
-			complexstr = newstringobject("__complex__");
+			complexstr = PyString_InternFromString("__complex__");
 			if (complexstr == NULL)
 				return NULL;
 		}