For review: PEP 308 - If-then-else expression

Dan Schmidt dfan at dfan.org
Fri Feb 7 17:49:06 EST 2003


"Sean Ross" <frobozz_electric at hotmail.com> writes:

| when <condition>, <expression1> else <expression2>

I thought of commas too (I thought that

   expr1 if cond, else expr2

might read nicely), but it makes putting these things in sequences or
argument lists harder.

-- 
http://www.dfan.org




More information about the Python-list mailing list