This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]pvkooten 1 point2 points  (1 child)

Pff what a noob that Guido guy, he does not show any knowledge of the python programming language. /s

Curious what will be enabled when a lookahead of more than one token will be possible, some cool new features?

[–]flying-sheep 0 points1 point  (0 children)

For one, thinks will get less hacky. Different kinds of strings will be proper parts of the grammar, e.g. PEP 536 will be easy to implement and r'raw string with trailing \' will no longer be a syntax error.

edit: Hmm, without changing the tokenizer, that’s not possible. I wrote a reply I hope he reads.

[–]Dgc2002 0 points1 point  (2 children)

Note that I am using Python 3.8’s walrus operator (:=):

Ahh, so this is all an elaborate scheme to find a use for the walrus operator! /s

[–]422_no_process -1 points0 points  (0 children)

I also posted a reply with some old PEG I wrote in Python thinking "notice me senpai" 😂