Py2.3 fix
authorStefan Behnel <scoder@users.berlios.de>
Sun, 14 Dec 2008 10:15:23 +0000 (11:15 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 14 Dec 2008 10:15:23 +0000 (11:15 +0100)
Cython/Compiler/ModuleNode.py

index 3af002222a0fe1597d3a9cc39cf07c024b5f105d..ba0bce5e76e76576c8d4388783e3911595fdfe2a 100644 (file)
@@ -411,6 +411,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
         code.putln("#endif")
         code.putln("#if PY_VERSION_HEX < 0x02040000")
         code.putln("  #define METH_COEXIST 0")
+        code.putln("  #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)")
         code.putln("#endif")
 
         code.putln("#if PY_VERSION_HEX < 0x02050000")