2 ms·
As far as I know there is no native mechanism for short circuiting in Python. So anything that short-circuits should be considered a special case.
by nerdponx 9y ago
As far as I know there is no native mechanism for short circuiting in Python. So anything that short-circuits should be considered a special case.
- HCIdivision17 9y agoBinary operations will do it, like in `True or foo()`, but there's no real lazy evaluation machinery for parameters to a function. (Yet? I bet someone's working on it... at least I haven't tried any packages like lazypy for it.)