Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on In Memoriam: Tim Peters 1952–2026. Parent comment
Not if you just use the objects as their natural types. For example:
>>> "" == False False >>> "a" == True False
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.
Not if you just use the objects as their natural types. For example:
> "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.