[Tutor] short circuiting

Dave C realtimethrill at googlemail.com
Thu Jun 25 05:32:35 CEST 2009


Hi
I've read that the builtin all() function stops evaluating as soon as
it hits a false item, meaning that items after the first false one are
not evaluated.

I was wondering if someone could give an example of where all()'s
short circuiting is of consequence, akin to:

False and produces_side_effect()

Many thanks


More information about the Tutor mailing list