You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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=Noneclosed_at=<Date2019-05-20.20:27:49.880>created_at=<Date2015-04-09.13:49:42.489>labels= ['type-bug', 'library']
title="lib2to3 doesn't provide a grammar where exec is a function"updated_at=<Date2019-05-20.20:27:49.879>user='https://bugs.python.org/elibendersky'
lib2to3 helpfully provides pygram.python_grammar_no_print_statement for parsing Python 3 ('print' has the semantics of an identifier, not a keyword)
However, the same courtesy is not extended to 'exec', which also turns from a statement to an identifier in Python 3.
I'd propose adding something like python_grammar_no_print_and_exec_statement
The name's a handful, but it's explicit and I can't think of anything else, given that we don't want to change the lib2to3 API at this time to rename these grammars using some other convention.
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: