What is Nostr?
Tom Ritchford /
npub15ws…0e5k
2024-07-10 07:31:14
in reply to nevent1q…eypr

Tom Ritchford on Nostr: The worst is that `is` will work a lot of the time in arithmetic, because numbers ...

The worst is that `is` will work a lot of the time in arithmetic, because numbers from -1 to 255 are singletons in CPython.

So you might write your code, test it, believe it worked, and then one day have it mysteriously fail.

`is` guaranteed to work for booleans, though.
Author Public Key
npub15ws9ffcgqpet3ypmq846aurtcnzqhscj6nw9a2s6cvtefrjv9s2sav0e5k