Skip to content

Commit b3abff7

Browse files
committed
clarifying things
1 parent 0bb90de commit b3abff7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

what-is-true.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ if value is None: ... # best
203203
## Summary
204204

205205
- `if thing:` does the same thing as `if bool(thing):`. This also
206-
works with while loops and most other things.
206+
works with while loops and most other things that are usually used
207+
with Booleans.
207208
- `bool()` of most things is True, but `bool()` values of None,
208209
zero and most empty things are False.
209210
- Use `is` and `is not` when comparing to None, `==` and `!=` when

0 commit comments

Comments
 (0)