
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2015-04-09 13:49 byeli.bendersky, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 13272 | merged | BTaskaya,2019-05-13 02:51 | |
| Messages (3) | |||
|---|---|---|---|
| msg240326 -(view) | Author: Eli Bendersky (eli.bendersky)*![]() | Date: 2015-04-09 13:49 | |
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. | |||
| msg342949 -(view) | Author: Guido van Rossum (gvanrossum)*![]() | Date: 2019-05-20 20:27 | |
New changeset4011d865d0572a3dd9988f2935cd835cc8fb792a by Guido van Rossum (Batuhan Taşkaya) in branch 'master':bpo-23896: Add a grammar where exec isn't a stmt (#13272)https://github.com/python/cpython/commit/4011d865d0572a3dd9988f2935cd835cc8fb792a | |||
| msg342951 -(view) | Author: Guido van Rossum (gvanrossum)*![]() | Date: 2019-05-20 20:27 | |
Thanks Batuhan Taşkaya! | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:15 | admin | set | github: 68084 |
| 2019-05-20 20:27:49 | gvanrossum | set | status: open -> closed resolution: fixed messages: +msg342951 stage: patch review -> resolved |
| 2019-05-20 20:27:14 | gvanrossum | set | nosy: +gvanrossum messages: +msg342949 |
| 2019-05-13 02:51:47 | BTaskaya | set | keywords: +patch stage: needs patch -> patch review pull_requests: +pull_request13178 |
| 2015-04-11 23:10:23 | ned.deily | set | nosy: +benjamin.peterson |
| 2015-04-09 13:49:42 | eli.bendersky | create | |