Feature suggestion -- return if true

James Mills prologic at shortcircuit.net.au
Tue Apr 12 04:20:55 CEST 2011


On Tue, Apr 12, 2011 at 12:18 PM, Jason Swails <jason.swails at gmail.com> wrote:
> This is only true if n < 5.  Otherwise, the first returns None and the
> second returns False.

Which is why I said:

return expr or None

But hey let's argue the point to death!

cheers
James

-- 
-- James Mills
--
-- "Problems are solved by method"



More information about the Python-list mailing list