From 73bc8c3f474f5683c06f579c397c209b95cd7462 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 May 2008 16:16:05 +0200 Subject: [PATCH] hack to make __Pyx_InternStrings() work for now: switch string interning off in Py3 --- Cython/Compiler/Nodes.py | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.26.2