You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/draft/design_topics/lazy_eager.rst
+2
Original file line number
Diff line number
Diff line change
@@ -21,3 +21,5 @@ A common code construct where this happens is conditional logic, e.g.::
21
21
# The if-statement will make Python call the __bool__ method
22
22
# on the result of `all(vals)`.
23
23
do_something_else()
24
+
25
+
Note that the API does not contain control flow constructs that would allow avoiding the implicit `__bool__` call in the example above. The only control flow-like function is `where`, but there's no function like `cond` to replace an `if`-statement.
0 commit comments