Guido van Rossum added the comment:

It's clear that dict.values() shouldn't be hashable -- using the identity is 
plain wrong here. But shouldn't the fix be to implement rich comparisons for 
dict.values()?

I think just a a.keys() == set(a.keys()), a.values() should be == 
set(a.values()).

Let's move the question about whether generators and iterators should be 
hashable elsewhere.

----------

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

Reply via email to