On 15/11/19 5:54 am, Paul Moore wrote:
On Thu, 14 Nov 2019 at 16:42, Random832 <[email protected]> wrote:
So, uh... what if we didn't need backslashes for statements that begin with a keyword and end with a colon?
Not sure about ambiguity, but it would require a much more powerful
parser than Python currently has
I'm not convinced of that. The parser already handles ignoring
newlines inside parenthesised expressions. Maybe the technique
used for that could be adapted to ignore newlines between a
statement-opening keyword and its matching colon?
In any case, I really doubt that arbitrary lookahead is required
to do this.
--
Greg
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/W7NRQ2FLQYZ6EI3XY7FXRD4PMVNXBNLH/
Code of Conduct: http://python.org/psf/codeofconduct/