projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d4b6c3
)
'#define PyString_Type PyBytes_Type' in Py3: 'str' is considered a builtin and intern...
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 30 May 2008 06:32:41 +0000
(08:32 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 30 May 2008 06:32:41 +0000
(08:32 +0200)
Cython/Compiler/ModuleNode.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ModuleNode.py
b/Cython/Compiler/ModuleNode.py
index 74536dab335abd5760f9eb6f00b0cb2716e86315..418af3cee9b11b757b38dd1a36b39a10f677cc90 100644
(file)
--- a/
Cython/Compiler/ModuleNode.py
+++ b/
Cython/Compiler/ModuleNode.py
@@
-425,6
+425,7
@@
class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("#if PY_MAJOR_VERSION >= 3")
code.putln(" #define PyBaseString_Type PyUnicode_Type")
+ code.putln(" #define PyString_Type PyBytes_Type")
code.putln(" #define PyInt_Type PyLong_Type")
code.putln(" #define PyInt_Check(op) PyLong_Check(op)")
code.putln(" #define PyInt_CheckExact(op) PyLong_CheckExact(op)")