Feature suggestion -- return if true

James Mills prologic at shortcircuit.net.au
Mon Apr 11 23:01:43 EDT 2011


On Tue, Apr 12, 2011 at 12:44 PM, Chris Angelico <rosuav at gmail.com> wrote:
> That's still not equivalent. "return expr or None" will always
> terminate the function. The OP's request was for something which would
> terminate the function if and only if expr is non-false.

The OP did not state this at all.
There was never any mention of early termination
of the function iif expr was True.

Sorry :/ I'm not picking on your comprehension skills here
but you didn't read what the OP wrote (which he/she may not have
been clear about in the first place( nor what I said in reply.

Have a nice day,

cheers
James

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



More information about the Python-list mailing list