Hacker News new | ask | show | jobs
by nerdponx 3262 days 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.
1 comments

Binary 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.)