PEP-308 a "simplicity-first" alternative

sismex01 at sismex01 at
Tue Feb 11 21:37:59 CET 2003

> From: Robin Becker [mailto:robin at]
> Sent: Tuesday, February 11, 2003 2:32 PM
> In article <mailman.1044992059.13191.python-list at>, holger
> krekel <pyth at> writes
> >x and y else z
> how do we humans parse 
> x and c1 or c2 and y else z
> in the context of boolean expressions and is supposed to bind more
> strongly than or.

Indeed.  When I read your expression, the first meaning
that jumped at me was:

   (x and c1) or (c2 and y else z)

But, maybe you weren't thinking of this meaning; in which
case, parens are your frens [sp]  ;-)


More information about the Python-list mailing list