Message225354
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. |
|
Date |
User |
Action |
Args |
2014-08-15 17:34:13 | gvanrossum | set | recipients:
+ gvanrossum, rhettinger, serhiy.storchaka, roippi |
2014-08-15 17:34:13 | gvanrossum | set | messageid: <1408124053.43.0.0856287688761.issue22192@psf.upfronthosting.co.za> |
2014-08-15 17:34:13 | gvanrossum | link | issue22192 messages |
2014-08-15 17:34:13 | gvanrossum | create | |
|