Making immutable instances

Mike Meyer mwm at mired.org
Thu Dec 1 21:54:49 EST 2005


Ben Finney <bignose+hates-spam at benfinney.id.au> writes:
>
>     "Since the values of an enumeration are directly reflected in the
>     values and attributes, Enum instances are immutable to preserve
>     this relationship"

This justifies making the attributes immutable. But that's old hat - I
had that use case last year. It doesn't justify making the instances
immutable. Or if it does, I missed it.

       thanks,
       <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list