projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ef07fc
)
fix 'cdef str' typing in Py3 (becomes bytes type)
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 25 Jan 2009 18:35:28 +0000
(19:35 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 25 Jan 2009 18:35:28 +0000
(19:35 +0100)
Cython/Compiler/ModuleNode.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ModuleNode.py
b/Cython/Compiler/ModuleNode.py
index 683606dc069bfe485eda774181ff72a0face3335..ec5c473c0edfc54909c21356214eb9ecd22cfa31 100644
(file)
--- a/
Cython/Compiler/ModuleNode.py
+++ b/
Cython/Compiler/ModuleNode.py
@@
-475,6
+475,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 PyString_CheckExact PyBytes_CheckExact")
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)")