From: Robert Bradshaw Date: Sun, 21 Feb 2010 09:13:56 +0000 (-0800) Subject: Function call returning a reference is an lvalue. X-Git-Tag: 0.13.beta0~331 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2031ca091079c274b9730b0bbe922e63dd48a043;p=cython.git Function call returning a reference is an lvalue. --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index e610fc62..29ae3ca2 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2459,6 +2459,9 @@ class CallNode(ExprNode): self.function.set_cname(type.declaration_code("")) self.analyse_c_function_call(env) return True + + def is_lvalue(self): + return self.type.is_reference def nogil_check(self, env): func_type = self.function_type()