Serhiy Storchaka added the comment:
Yet one corner case:
>>> (1, math.nan) in {1: math.nan}.items()
True
>>> (1, math.nan) in ItemsView({1: math.nan})
False
This can be resolved if compare not v with value, but a tuple (key, v) with
item.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24434>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com