'#define PyString_Type PyBytes_Type' in Py3: 'str' is considered a builtin and intern...
authorStefan Behnel <scoder@users.berlios.de>
Fri, 30 May 2008 06:32:41 +0000 (08:32 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 30 May 2008 06:32:41 +0000 (08:32 +0200)
Cython/Compiler/ModuleNode.py

index 74536dab335abd5760f9eb6f00b0cb2716e86315..418af3cee9b11b757b38dd1a36b39a10f677cc90 100644 (file)
@@ -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)")