fix #463: TypeofNode crashes when typeof() is called on expressions
authorStefan Behnel <scoder@users.berlios.de>
Sat, 5 Dec 2009 16:37:05 +0000 (17:37 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 5 Dec 2009 16:37:05 +0000 (17:37 +0100)
Cython/Compiler/ExprNodes.py

index c475d7af17273b44a4472f18ec3c225776cfc6b5..04b489b66f73b230bd1864c3362825c30da474ba 100644 (file)
@@ -4413,7 +4413,7 @@ class TypeofNode(ExprNode):
     literal = None
     type = py_object_type
     
-    subexprs = ['operand', 'literal']
+    subexprs = ['literal']
     
     def analyse_types(self, env):
         self.operand.analyse_types(env)