?
=?ISO-8859-1?Q?Gregory_Pi=F1ero?=
Hey guys,
I don't understand why this isn't working for me. I'd like to be able
to do this. Is there another short alternative to get this
intersection?
[Dbg]>>> set([{'a':1},{'b':2}]).intersection([{'a':1}])
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
TypeError: dict objects are unhashable
(Bonus points: Why does anything have to be "hashed"? Can't it just
check the references?)
Thanks,
I don't understand why this isn't working for me. I'd like to be able
to do this. Is there another short alternative to get this
intersection?
[Dbg]>>> set([{'a':1},{'b':2}]).intersection([{'a':1}])
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
TypeError: dict objects are unhashable
(Bonus points: Why does anything have to be "hashed"? Can't it just
check the references?)
Thanks,