Proposed PEP for a Conditional Expression

Skip Montanaro skip at pobox.com
Fri Sep 14 14:37:46 CEST 2001


    Markus> What about "(<cond>: return <expr> [else return <expr])"

All you're saving is a single word and a colon:

    if <cond>: return <expr>
    else: return <expr>

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list