From: Robert Bradshaw Date: Tue, 31 Dec 2013 06:47:02 +0000 (-0800) Subject: Fix __richcmp__ bug that's been failing Sage tests. X-Git-Tag: 0.20b1~31^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cb04d5ab3ed4c33f3d1a2952522986ddbba8b18;p=platform%2Fupstream%2Fpython-cython.git Fix __richcmp__ bug that's been failing Sage tests. --- 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)