From 068e0c7165790843053e6da5e31c492e53341c7a Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 6 Dec 2010 19:32:57 +0100 Subject: [PATCH] fix ext type inheritance from 'int' in Py3 --- Cython/Compiler/ModuleNode.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 44a24994..c39128fe 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -556,6 +556,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): #endif #if PY_MAJOR_VERSION >= 3 + #define PyIntObject PyLongObject #define PyInt_Type PyLong_Type #define PyInt_Check(op) PyLong_Check(op) #define PyInt_CheckExact(op) PyLong_CheckExact(op) -- 2.26.2