From c3a11b9e29494374852df0c0187378d817ed10b8 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Jan 2009 12:23:46 +0100 Subject: [PATCH] error in compile-time attribute access --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 201fff53..ceae7ed9 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2618,7 +2618,7 @@ class AttributeNode(ExprNode): self.error("Invalid attribute name '%s' in compile-time expression" % attr) return None - obj = self.arg.compile_time_value(denv) + obj = self.obj.compile_time_value(denv) try: return getattr(obj, attr) except Exception, e: -- 2.26.2