typo
authorStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 15:59:53 +0000 (17:59 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 15:59:53 +0000 (17:59 +0200)
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/Parsing.py

index 9d03cba44266eb5218ae0e161c646e0cb087b891..7704500ddbbd218b9d1b64c66bf24f65dcda3755 100644 (file)
@@ -46,6 +46,8 @@ class NormalizeTree(CythonTransform):
         self.visitchildren(node)
         self.is_in_statlist = stacktmp
         if not self.is_in_statlist and not self.is_in_expr:
+            if isinstance(node, TupleNode):
+                print node
             return StatListNode(pos=node.pos, stats=[node])
         else:
             return node
index 8839009d2f6b7dee92333b089e5cedf30974cff5..efb88fbf6745c1d585d72090c410a36a5a15af3e 100644 (file)
@@ -1615,7 +1615,7 @@ def p_c_simple_base_type(s, self_flag, nonempty):
     # Treat trailing [] on type as buffer access
     if s.sy == '[':
         if is_basic:
-            p.error("Basic C types do not support buffer access")
+            s.error("Basic C types do not support buffer access")
         return p_buffer_access(s, type_node)
     else:
         return type_node