This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ignore py3_test_grammar.py syntax error
Type: compile error Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, collinwinter, georg.brandl, kbk
Priority: normal Keywords:

Created on 2009-04-10 06:08 by kbk, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg85840 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2009-04-10 06:07
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
msg85852 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-04-11 10:57
I think this file is only meant as a test that 2to3 can parse both 2.x
and 3.x syntax, not Python itself.
msg85855 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-04-11 13:20
Quite correct.
msg85857 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2009-04-11 13:51
So the error during libinstall should be ignored....

http://docs.python.org/dev/results/make-install.out
msg85866 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-04-11 15:59
Oh, indeed. I wonder what the best way to do that is?
msg85871 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-04-11 19:31
Should be fixed in r71494.
History
Date User Action Args
2022-04-11 14:56:47adminsetgithub: 49983
2009-04-11 19:31:14benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg85871
2009-04-11 15:59:54benjamin.petersonsetstatus: closed -> open
title: py3_test_grammar.py syntax error -> ignore py3_test_grammar.py syntax error
messages: + msg85866

assignee: collinwinter ->
resolution: not a bug -> (no value)
2009-04-11 13:51:06kbksetmessages: + msg85857
2009-04-11 13:20:17benjamin.petersonsetstatus: pending -> closed

nosy: + benjamin.peterson
messages: + msg85855

resolution: wont fix -> not a bug
2009-04-11 10:57:53georg.brandlsetstatus: open -> pending

nosy: + georg.brandl
messages: + msg85852

resolution: wont fix
2009-04-10 06:08:17kbkcreate