PEP308 - preference for 'x if c else y' over 'c then x else y'

Domenico grayshade at libero.it
Sun Feb 16 23:06:57 CET 2003


> But, anybody who knows the math notation, will read the ":" as "for", 
> not as "if".

well, here in Italy we read it as "se" (== "if").
IMHO, +1 on "a if c else b"...

well-it's-just-so-pythonic'ally yours. Domenico




More information about the Python-list mailing list