Message193391
Commenting further:
some_key in dict
is conceptually the same as
some_key in dict.keys()
which /would/ return False for an unhashable key -- at least it did in 2.x; for 3.x you have to say
some_key in list(dict.keys())
which seems like a step backwards.
Is it worth changing __contains__ and keys() to be in line with equality? |
|
Date |
User |
Action |
Args |
2013-07-20 01:27:17 | ethan.furman | set | recipients:
+ ethan.furman, barry |
2013-07-20 01:27:17 | ethan.furman | set | messageid: <1374283637.16.0.636388101204.issue18510@psf.upfronthosting.co.za> |
2013-07-20 01:27:17 | ethan.furman | link | issue18510 messages |
2013-07-20 01:27:16 | ethan.furman | create | |
|