From 2031ca091079c274b9730b0bbe922e63dd48a043 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sun, 21 Feb 2010 01:13:56 -0800 Subject: [PATCH] Function call returning a reference is an lvalue. --- Cython/Compiler/ExprNodes.py | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.26.2