Raymond Hettinger added the comment:

Python containers are allowed to let identity-imply-equality (the reflesive 
property of equality).  Dicts, lists, tuples, deques, sets, and frozensets all 
work this way.  So for your purposes,  you need to use distinct NaN values 
rather than reusing a single instance of a NaN.

----------
nosy: +rhettinger
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21873>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to