On Tue, Apr 12, 2011 at 12:44 PM, Chris Angelico <ros...@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" -- http://mail.python.org/mailman/listinfo/python-list