Making immutable instances

Mike Meyer mwm at mired.org
Fri Nov 25 23:20:05 EST 2005


Steven D'Aprano <steve at REMOVETHIScyber.com.au> writes:
> "Hmmm, the class designer didn't want me adding attributes to instances...
> maybe he had a good reason for that..."

When it was suggested that a facility for doing this be added to the
language, I asked for a use case for it. Nobodies come up with a
reason for placing such restriction on the client yet. If you've got a
use case, I'd be interested in hearing it.

    <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