fix TupleNode typing as tuple_type instead of py_object_type
authorStefan Behnel <scoder@users.berlios.de>
Thu, 11 Nov 2010 22:19:13 +0000 (23:19 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 11 Nov 2010 22:19:13 +0000 (23:19 +0100)
Cython/Compiler/ExprNodes.py

index 988048bd1c00a81af1bd15eae6ae4ffb93a1d498..1434af09fb2d144c5774b0c7ddfe2d3fd90f9e05 100755 (executable)
@@ -3888,7 +3888,8 @@ class TupleNode(SequenceNode):
             self.is_literal = 1
         else:
             SequenceNode.analyse_types(self, env, skip_children)
-            
+        self.type = tuple_type
+
     def calculate_result_code(self):
         if len(self.args) > 0:
             error(self.pos, "Positive length tuples must be constructed.")