Rich comparison methods don't work in sets?

Gustavo Narea me at gustavonarea.net
Sun Jun 21 14:27:32 CEST 2009


Hi, everyone.

OK, I got it  now! The value of the hash is not decisive, as __eq__
will still be called when the hashes match. It's like a filter, for
performance reasons.

It's really nice, I just tried it and it worked.

Thank you very, very much!!

Cheers,

  - Gustavo.



More information about the Python-list mailing list