hack to make __Pyx_InternStrings() work for now: switch string interning off in Py3
authorStefan Behnel <scoder@users.berlios.de>
Sat, 10 May 2008 14:16:05 +0000 (16:16 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 10 May 2008 14:16:05 +0000 (16:16 +0200)
Cython/Compiler/Nodes.py

index 4ca448f454d7d27e80309061bc3c239e40348a6c..e434fe35fdc5dab07bc83e36cdb15aeaa671c7fd 100644 (file)
@@ -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;