[pypy-issue] [issue1247] Indexing into a tuple literal with an ellipsis crashes

Erik Allik tracker at bugs.pypy.org
Thu Aug 30 23:19:53 CEST 2012


New submission from Erik Allik <eallik at gmail.com>:

$ ipython
In [1]: ()[...]
RPython traceback:
  File "interpreter_pycompiler.c", line 1691, in PythonAstCompiler__compile_ast
  File "interpreter_astcompiler_ast_2.c", line 56953, in Module_mutate_over
  File "interpreter_astcompiler_ast.c", line 22049, in 
ASTVisitor__mutate_sequence
  File "interpreter_astcompiler_ast_2.c", line 38903, in Expr_mutate_over
  File "interpreter_astcompiler_optimize.c", line 2557, in 
OptimizingVisitor_visit_Subscript
  File "interpreter_astcompiler_optimize.c", line 225, in AST_as_constant
Fatal RPython error: AssertionError
Abort trap: 6


same on the plain console, except on the plain console, the traceback is badly 
formatted.

storing the tuple in a variable and then indexing works properly:

TypeError: tuple index must be an integer, not Ellipsis

----------
messages: 4688
nosy: eallik, pypy-issue
priority: bug
status: unread
title: Indexing into a tuple literal with an ellipsis crashes

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1247>
________________________________________


More information about the pypy-issue mailing list