[pypy-svn] r66358 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Sat Jul 18 15:47:42 CEST 2009


Author: benjamin
Date: Sat Jul 18 15:47:41 2009
New Revision: 66358

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py
Log:
annotator hint

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/astbuilder.py	Sat Jul 18 15:47:41 2009
@@ -969,6 +969,7 @@
                 ext_slice = ast.ExtSlice(slices)
                 return ast.Subscript(left_expr, ext_slice, ast.Load,
                                      middle.lineno, middle.column)
+            assert isinstance(slices[0], ast.Index)
             elts = [idx.value for idx in slices]
             tup = ast.Tuple(elts, ast.Load, middle.lineno, middle.column)
             return ast.Subscript(left_expr, ast.Index(tup), ast.Load,



More information about the Pypy-commit mailing list