PEP-308 a "simplicity-first" alternative
sismex01 at hebmex.com
sismex01 at hebmex.com
Tue Feb 11 15:37:59 EST 2003
> From: Robin Becker [mailto:robin at jessikat.fsnet.co.uk]
> Sent: Tuesday, February 11, 2003 2:32 PM
>
> In article <mailman.1044992059.13191.python-list at python.org>, holger
> krekel <pyth at devel.trillke.net> 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] ;-)
-gustavo
More information about the Python-list
mailing list