Py3K idea: why not drop the colon?

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Sat Nov 11 03:16:43 CET 2006


Steven D'Aprano wrote:

> And just for the avoidance of doubt, Python "x == blue or red or
> yellow" is semantically equivalent to:
> 
> (x == blue) or bool(red) or bool(yellow)

Yep, got it. Shame on me, it's so obvious now :)

Regards,


Björn

-- 
BOFH excuse #317:

Internet exceeded Luser level, please wait until a luser logs off
before attempting to log back on.




More information about the Python-list mailing list