views:

142

answers:

1

Surprisingly, I was unable to find the answer to this on Stack Overflow:

Does Python support short-circuiting in boolean expressions?

+7  A: 

Yep, both and and or operators short-circuit -- see the docs.

Alex Martelli
So do `any` and `all`.
Paul McGuire