Making immutable instances
- From: Ben Finney <bignose+hates-spam@xxxxxxxxxxxxxxx>
- Date: Thu, 24 Nov 2005 09:50:07 +1100 (EST)
Howdy all,
How can a (user-defined) class ensure that its instances are
immutable, like an int or a tuple, without inheriting from those
types?
What caveats should be observed in making immutable instances?
--
\ "Love is the triumph of imagination over intelligence." -- |
`\ Henry L. Mencken |
_o__) |
Ben Finney
.
- Follow-Ups:
- Re: Making immutable instances
- From: Mike
- Re: Making immutable instances
- From: Alex Martelli
- Re: Making immutable instances
- From: Giovanni Bajo
- Re: Making immutable instances
- Prev by Date: Re: newbie class question
- Next by Date: Re: Accessing a database from a multithreaded application
- Previous by thread: newbie class question
- Next by thread: Re: Making immutable instances
- Index(es):