Does Python support short-circuiting?

Dinah picture Dinah · Apr 5, 2010 · Viewed 98.1k times · Source

Does Python support short-circuiting in boolean expressions?

Answer

Alex Martelli picture Alex Martelli · Apr 5, 2010

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