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

Andrew Koenig ark at research.att.com
Sun Feb 9 22:23:08 EST 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 research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list