diff options
author | mattip <matti.picus@gmail.com> | 2018-11-13 19:17:06 -0800 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2018-11-13 19:17:06 -0800 |
commit | bee7b699e9a5c928ecdd4ff9a23d6764211c1ed6 (patch) | |
tree | f4c2f36c9aa5f13a9dd82999f6809061459b4cb2 | |
parent | 07aaffae35fc15992657662f495968191cbfcaef (diff) | |
download | cython-bee7b699e9a5c928ecdd4ff9a23d6764211c1ed6.tar.gz |
fix for fused nodes
-rw-r--r-- | Cython/Compiler/ExprNodes.py | 9 |
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: |