Making immutable instances

Mike Meyer mwm at
Fri Dec 2 01:50:19 CET 2005

Ben Finney <bignose+hates-spam at> writes:
> Mike Meyer <mwm at> wrote:
>> Lots of people seem to want immutable instances. Nobody seems to
>> have a use case for them.
> Perhaps you missed my release announcement of the 'enum' package that
> explains why Enum instances are immutable.

Yes, I did. I couldn't turn it up in Google, either. I did find a long
thread where you discuss the issue. Reading that, I found
justifications for having a constant hash value, and having immutable
attributes - but I've known about those for a long time.. Neither of
these constitutes an immutable instance.

Could I get you to recap the reason?

Mike Meyer <mwm at>
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

More information about the Python-list mailing list