Feature suggestion -- return if true
prologic at shortcircuit.net.au
Tue Apr 12 04:12:12 CEST 2011
On Tue, Apr 12, 2011 at 11:44 AM, Grant Edwards <invalid at invalid.invalid> wrote:
> How is that the same?
> return? something() return something() or None
> return? somethingelse() return somethingelse() or None
> log("didn't find an answer") log("didn't find an answer")
> raise ValueError raise ValueError
> Are you saying the two snippets above are equivalent?
x = n < 5
is functionally equivalent to:
return n < 5
-- James Mills
-- "Problems are solved by method"
More information about the Python-list