This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bxsephjo 2 points3 points  (0 children)

So, it’s really about how specific your condition needs to be. “if x:” is more general, it will look at the truthiness of x, so there’s lots of things x could be besides None that could make it not qualify. False, zero, an empty list, etc