<p></p>
<p>(sent from my phone)<br>
On Apr 28, 2012 7:36 PM, "Chris Rebert" <<a href="mailto:clp2@rebertia.com">clp2@rebertia.com</a>> wrote:<br>
> Correct. Pedantically, you can define __hash__() on mutable objects;<br>
> it's just not very useful or sensible, so people generally don't.<br>
 <br>
I find it's fine to define __hash__ on mutable objects as long as __eq__ only relies on immutable state (and then so should __hash__ of course).  A typical example would be an object that does some caching.</p>
<p>-- <br>
Arnaud<br>
</p>