George Sakkis wrote:
You're right, it doesn't short circuit, as most of the examples posted above. 
Here's one that it
does:

...

I also looked into taking advantage of itertools' dropwhile, but the all and any recipes included in the itertools documentation do short-circuit and don't require the setup of a try/except/else.


--
Brian Beck
Adventurer of the First Order
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to