What is Nostr?
Mark T. Tomczak /
npub1wgs…a0n5
2024-06-27 21:39:39

Mark T. Tomczak on Nostr: #python , why are you trying to kill my soul? >>> from math import nan >>> min(nan, ...

#python , why are you trying to kill my soul?

>>> from math import nan
>>> min(nan, 1)
nan
>>> min(1, nan)
1
>>>


... stuff like this is why people just memorize the rule "Avoid the magic floating-point values like the plague."
Author Public Key
npub1wgss3r73xkpwp3gz3lqq5ftnqwqav4u2p4lzp2670cut7gapf6yqhja0n5