summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-18 08:04:16 (GMT)
committerGuido van Rossum <guido@python.org>1997-01-18 08:04:16 (GMT)
commit8d751616710f480833e87c5b752a4d2aecee58a1 (patch)
treea42b97929c5af338974ad2667832246bd3e0bf13 /Python
parent7b89b6a6608c4ac4387e12401fde5a0ac8fb9fcd (diff)
downloadcpython-8d751616710f480833e87c5b752a4d2aecee58a1.zip
cpython-8d751616710f480833e87c5b752a4d2aecee58a1.tar.gz
cpython-8d751616710f480833e87c5b752a4d2aecee58a1.tar.bz2
Intern the string "__complex__".
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 0eaf4ed..b3cb6f7 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;
}