builtin functions for and and or?
Brian Beck
exogen at gmail.com
Sun Feb 13 17:52:25 EST 2005
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
More information about the Python-list
mailing list