From 785caeefbd58f33d4b7134d619201cb08201de20 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 14 Dec 2008 11:15:23 +0100 Subject: [PATCH] Py2.3 fix --- Cython/Compiler/ModuleNode.py | 1 + 1 file changed, 1 insertion(+) 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") -- 2.26.2