From: Stefan Behnel Date: Sat, 10 Jan 2009 11:23:46 +0000 (+0100) Subject: error in compile-time attribute access X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c3a11b9e29494374852df0c0187378d817ed10b8;p=cython.git error in compile-time attribute access --- 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: