diff options
author | Guido van Rossum <guido@python.org> | 1997-01-18 08:04:16 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-01-18 08:04:16 (GMT) |
commit | 8d751616710f480833e87c5b752a4d2aecee58a1 (patch) | |
tree | a42b97929c5af338974ad2667832246bd3e0bf13 /Python/bltinmodule.c | |
parent | 7b89b6a6608c4ac4387e12401fde5a0ac8fb9fcd (diff) | |
download | cpython-8d751616710f480833e87c5b752a4d2aecee58a1.zip cpython-8d751616710f480833e87c5b752a4d2aecee58a1.tar.gz cpython-8d751616710f480833e87c5b752a4d2aecee58a1.tar.bz2 |
Intern the string "__complex__".
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 2 |
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; } |