From: Stefan Behnel Date: Sat, 10 May 2008 14:16:05 +0000 (+0200) Subject: hack to make __Pyx_InternStrings() work for now: switch string interning off in Py3 X-Git-Tag: 0.9.8rc1~37^2~93 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=73bc8c3f474f5683c06f579c397c209b95cd7462;p=cython.git hack to make __Pyx_InternStrings() work for now: switch string interning off in Py3 --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 4ca448f4..e434fe35 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -4312,7 +4312,11 @@ static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/ """,""" static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) { while (t->p) { + #if PY_MAJOR_VERSION < 3 *t->p = PyString_InternFromString(t->s); + #else + *t->p = PyString_FromString(t->s); + #endif if (!*t->p) return -1; ++t;