[Python-Dev] PEP 351, the freeze protocol

Antoine Pitrou solipsis at pitrou.net
Mon Oct 31 00:46:07 CET 2005


> It allows everything in Python to be both mutable and hashable,

I don't understand, since it's already the case. Any user-defined object
is at the same time mutable and hashable.
And if you want the hash value to follow the changes in attribute
values, just define an appropriate __hash__ method.

Regards

Antoine.




More information about the Python-Dev mailing list