News for hackers. Stuff that matters.
Re:WTF Python: Exploring and understanding Python through su... by dragonwriter on Thursday February 11, 2021 @03:59AM (#26099603)
> Checking if something is or is not True/False/None can just be treating the thing as True-ish or False-ish.

No, it can't. Especially obviously not something whose type is Optional[bool]. Or, more subtly, Optional[Number] or Optional[Sequence[T]].

There are no comments on this comment yet.