summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2018-11-13 19:17:06 -0800
committermattip <matti.picus@gmail.com>2018-11-13 19:17:06 -0800
commitbee7b699e9a5c928ecdd4ff9a23d6764211c1ed6 (patch)
treef4c2f36c9aa5f13a9dd82999f6809061459b4cb2
parent07aaffae35fc15992657662f495968191cbfcaef (diff)
downloadcython-bee7b699e9a5c928ecdd4ff9a23d6764211c1ed6.tar.gz
fix for fused nodes
-rw-r--r--Cython/Compiler/ExprNodes.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py
index 612996503..b00544ba7 100644
--- a/Cython/Compiler/ExprNodes.py
+++ b/Cython/Compiler/ExprNodes.py
@@ -6976,10 +6976,11 @@ class AttributeNode(ExprNode):
self.obj = self.obj.analyse_types(env)
self.analyse_attribute(env)
if self.entry and self.entry.is_cmethod and not self.is_called:
- # It must be a property method. This should be done at a different level??
- self.is_called = 1
- self.op = ''
- self.result_ctype = self.type.return_type
+ if getattr(self.entry, 'is_cgetter', False):
+ # This should be done at a different level??
+ self.is_called = 1
+ self.op = ''
+ self.result_ctype = self.type.return_type
pass
## Reference to C array turns into pointer to first element.
#while self.type.is_array: