From: Stefan Behnel Date: Sat, 10 Oct 2009 10:01:40 +0000 (+0200) Subject: Py2.3 fix X-Git-Tag: 0.13.beta0~2^2~121^2~89 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e9f4c708e4e066a6eb7dbb52b7b4f6d89d27809c;p=cython.git Py2.3 fix --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 7d5d03d7..dce055f0 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -433,6 +433,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): 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(" #define PyDict_Contains(d,o) PySequence_Contains(d,o)") code.putln("#endif") code.putln("#if PY_VERSION_HEX < 0x02050000")