From: Stefan Behnel Date: Sun, 14 Dec 2008 10:15:23 +0000 (+0100) Subject: Py2.3 fix X-Git-Tag: 0.11-beta~132 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=785caeefbd58f33d4b7134d619201cb08201de20;p=cython.git Py2.3 fix --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 3af00222..ba0bce5e 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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")