Don't flatten list comprehension nodes
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 13 Feb 2008 03:42:28 +0000 (19:42 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 13 Feb 2008 03:42:28 +0000 (19:42 -0800)
Cython/Compiler/ExprNodes.py

index 7892aed8d127f81aa8439ae298674185329a8c65..f7736536315b8d9409831f9da487006a5ccc0433 100644 (file)
@@ -2244,6 +2244,7 @@ class ListNode(SequenceNode):
 class ListComprehensionNode(SequenceNode):
 
     subexprs = []
+    is_sequence_constructor = 0 # not unpackable
 
     def analyse_types(self, env): 
         self.type = py_object_type