Feature suggestion -- return if true

Chris Angelico rosuav at gmail.com
Tue Apr 12 18:52:27 EDT 2011


On Wed, Apr 13, 2011 at 8:45 AM, Westley Martínez <anikom15 at 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



More information about the Python-list mailing list