From 1cb04d5ab3ed4c33f3d1a2952522986ddbba8b18 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 30 Dec 2013 22:47:02 -0800 Subject: [PATCH] Fix __richcmp__ bug that's been failing Sage tests. --- Cython/Compiler/Nodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 15b288f..78a5553 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -2972,6 +2972,9 @@ class DefNodeWrapper(FuncDefNode): if not arg.type.is_pyobject: if not arg.type.create_from_py_utility_code(env): pass # will fail later + elif not arg.hdr_type.is_pyobject: + if not arg.hdr_type.create_to_py_utility_code(env): + pass # will fail later def signature_has_nongeneric_args(self): argcount = len(self.args) -- 2.7.4