[New-bugs-announce] [issue5733] py3_test_grammar.py syntax error

Kurt B. Kaiser report at bugs.python.org
Fri Apr 10 08:08:20 CEST 2009


New submission from Kurt B. Kaiser <kbk at shore.net>:

Try running it as a script:

  File "Lib/lib2to3/tests/data/py3_test_grammar.py", line 130
    x = ...
        ^
SyntaxError: invalid syntax

Furthermore, testEllipsis seems invalid.  What is intended?

>>> class C:
	def __getitem__(self, x): return x

>>> c[...]
Ellipsis
>>> c[.                   .                     .]
Ellipsis
>>> eval(...)
SyntaxError: invalid syntax

----------
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 85840
nosy: collinwinter, kbk
priority: normal
severity: normal
status: open
title: py3_test_grammar.py syntax error
type: compile error
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5733>
_______________________________________


More information about the New-bugs-announce mailing list