projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
866f62d
)
hack to make __Pyx_InternStrings() work for now: switch string interning off in Py3
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 May 2008 14:16:05 +0000
(16:16 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 10 May 2008 14:16:05 +0000
(16:16 +0200)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 4ca448f454d7d27e80309061bc3c239e40348a6c..e434fe35fdc5dab07bc83e36cdb15aeaa671c7fd 100644
(file)
--- 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;