Python grammar..

Delaney, Timothy tdelaney at
Wed Jun 13 20:11:45 EDT 2001

> Choose a parsing rule and use parens to group things differently.
> Python (and many other languages) already need parens to do this for
> binary operators ("1-2-3" parses as "(1-2)-3").
> So you'd probably have to write "Spam(scramble(eggs), ham)" as
> "Spam (scramble eggs) ham".

I'm sure I'm not the only one who has noticed that with the addition of one
set of parentheses we have ...

(Spam (scramble eggs) ham)

... look familiar?

Tim Delaney

More information about the Python-list mailing list