Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore py3_test_grammar.py syntax error #49983

Closed
kbkaiser opened this issue Apr 10, 2009 · 6 comments
Closed

ignore py3_test_grammar.py syntax error #49983

kbkaiser opened this issue Apr 10, 2009 · 6 comments
Labels
build The build process and cross-build topic-2to3

Comments

@kbkaiser
Copy link
Contributor

BPO 5733
Nosy @birkenfeld, @kbkaiser, @benjaminp

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-04-11.19:31:14.763>
created_at = <Date 2009-04-10.06:08:16.433>
labels = ['build', 'expert-2to3']
title = 'ignore py3_test_grammar.py syntax error'
updated_at = <Date 2009-04-11.19:31:14.730>
user = 'https://github.com/kbkaiser'

bugs.python.org fields:

activity = <Date 2009-04-11.19:31:14.730>
actor = 'benjamin.peterson'
assignee = 'none'
closed = True
closed_date = <Date 2009-04-11.19:31:14.763>
closer = 'benjamin.peterson'
components = ['2to3 (2.x to 3.x conversion tool)']
creation = <Date 2009-04-10.06:08:16.433>
creator = 'kbk'
dependencies = []
files = []
hgrepos = []
issue_num = 5733
keywords = []
message_count = 6.0
messages = ['85840', '85852', '85855', '85857', '85866', '85871']
nosy_count = 4.0
nosy_names = ['georg.brandl', 'collinwinter', 'kbk', 'benjamin.peterson']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue5733'
versions = ['Python 2.7']

@kbkaiser
Copy link
Contributor Author

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

@kbkaiser kbkaiser added topic-2to3 build The build process and cross-build labels Apr 10, 2009
@birkenfeld
Copy link
Member

I think this file is only meant as a test that 2to3 can parse both 2.x
and 3.x syntax, not Python itself.

@benjaminp
Copy link
Contributor

Quite correct.

@kbkaiser
Copy link
Contributor Author

So the error during libinstall should be ignored....

http://docs.python.org/dev/results/make-install.out

@benjaminp
Copy link
Contributor

Oh, indeed. I wonder what the best way to do that is?

@benjaminp benjaminp reopened this Apr 11, 2009
@benjaminp benjaminp removed the invalid label Apr 11, 2009
@benjaminp benjaminp changed the title py3_test_grammar.py syntax error ignore py3_test_grammar.py syntax error Apr 11, 2009
@benjaminp
Copy link
Contributor

Should be fixed in r71494.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build topic-2to3
Projects
None yet
Development

No branches or pull requests

3 participants