Proposed PEP for a Conditional Expression
Skip Montanaro
skip at pobox.com
Fri Sep 14 08:37:46 EDT 2001
More information about the Python-list mailing list
Fri Sep 14 08:37:46 EDT 2001
- Previous message (by thread): Proposed PEP for a Conditional Expression
- Next message (by thread): Proposed PEP for a Conditional Expression
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message (by thread): Proposed PEP for a Conditional Expression
- Next message (by thread): Proposed PEP for a Conditional Expression
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list