New submission from Kurt B. Kaiser <[email protected]>:
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 <[email protected]>
<http://bugs.python.org/issue5733>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com