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.

Author eli.bendersky
Recipients eli.bendersky
Date 2015-04-09.13:49:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428587382.51.0.855590572872.issue23896@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-04-09 13:49:42eli.benderskysetrecipients: + eli.bendersky
2015-04-09 13:49:42eli.benderskysetmessageid: <1428587382.51.0.855590572872.issue23896@psf.upfronthosting.co.za>
2015-04-09 13:49:42eli.benderskylinkissue23896 messages
2015-04-09 13:49:41eli.benderskycreate