On Wed, Apr 13, 2011 at 8:45 AM, Westley Martínez <aniko...@gmail.com> wrote: >> I don't think that this is equivalent. The OP's original idea doesn't >> involve a loop, but this does - how could that be equivalent? > > Not OP's idea, Angelico's.
I didn't actually advocate a loop, but that method could work too. It all depends on the actual code being executed. I'd still be in favour of shor-circuit Or operators for this, although it does cost readability. Side point: Interesting that I'm referred to by surname here. Seems there's a large number of people here named Chris - fits my theory that geeks are often named Chris, and vice versa! Chris Angelico aka Rosuav -- http://mail.python.org/mailman/listinfo/python-list