we-like-parsers / pegen_experiments

Experiments for the official PEG parser generator for Python
https://github.com/python/cpython/tree/master/Tools/peg_generator
Other
275 stars 29 forks source link

Integration: Parenthesized with statements are currently allowed #229

Closed lysnikolaou closed 4 years ago

lysnikolaou commented 4 years ago

Do we want to continue to allow them in CPython as well? If so, we probably need to open a discussion in python-dev and author a PEP, right?

gvanrossum commented 4 years ago

Hm, this cannot be done using the old parser, so I would hold off until the old parser is truly dead. Hopefully we can do this in 3.10.

pablogsal commented 4 years ago

There is already an opened issue (https://bugs.python.org/issue12782) and up to the point I know everyone agrees that is a desirable thing to do. We can mention this at the language summit talk certainly.

lysnikolaou commented 4 years ago

Can be closed as well. It was discussed in python/cpython#19704.