Feature suggestion -- return if true
prologic at shortcircuit.net.au
Mon Apr 11 22:44:39 EDT 2011
On Tue, Apr 12, 2011 at 12:18 PM, Grant Edwards <invalid at invalid.invalid> wrote:
> You stated that
> return? <expr>
> was equivalent to
> return <expr> or None
This is _not_ what I said.
Quoting from my earlier post:
> return? expr
This syntax does not fit well within python ideology.
> be expanded to
> _temp = expr
> if _temp: return _temp
This could be simplified to just:
return expr or None
Please read carefully before putting words in my mouth.
I stated very clear y that return? expr didn't seem fitting
in the python ideology as syntax for this behavior.
-- James Mills
-- "Problems are solved by method"
More information about the Python-list