error in compile-time attribute access
authorStefan Behnel <scoder@users.berlios.de>
Sat, 10 Jan 2009 11:23:46 +0000 (12:23 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 10 Jan 2009 11:23:46 +0000 (12:23 +0100)
Cython/Compiler/ExprNodes.py

index 201fff53b60117ef4f94418540a4c548730bc0ba..ceae7ed9715500a9ffd3c5ed6f8f82850457bce3 100644 (file)
@@ -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: