floating-point

2
quality: all 6+ 8+
1
0

An exploration of unusual behavior in Python's float('nan') implementation, where NaN values are hashable but don't equal themselves, leading to unexpected behavior in sets, dictionaries, and other data structures that rely on equality and hashing.

brassnet.biz · freediver· 1 month ago · opinion · details · hn 31