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

Andrew Koenig ark at
Mon Feb 10 04:23:08 CET 2003

>> but must confess that I'm growing more in favor of

>> if cond: true_expr else: false_expr

Samuele> I don't like the : in there.

Why not?  It's exactly analogous with if-statements.

Andrew Koenig, ark at,

More information about the Python-list mailing list