News for hackers. Stuff that matters.
Re:In Memoriam: Tim Peters 1952–2026 by pdonis on Thursday November 12, 2026 @02:29PM (#50472871)
> it became possible to compare things as equal to True or False

Not if you just use the objects as their natural types. For example:

    >>> "" == False
    False
    >>> "a" == True
    False
> "if x" and "if x == True" are now very similar, but subtly different, ways to express the same thing.

No, they're not. See above.

Protip: Before making any claims about the behavior of a language with a REPL, test them at the REPL.

There are no comments on this comment yet.