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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to