How to make an immutable instance

Batista, Facundo FBatista at
Fri Jun 18 14:59:01 CEST 2004

[Tim Peters]

#- When/if Decimal is recoded in C, it will be easy to make it "truly
#- immutable".  If you think you have to try in Python anyway, then yes,
#- read-only properties are the intended way to get an idiot-resistant
#- approximation to immutability.

I particully don't care.  But that was an specification from the original
pre-PEP (just to use it as key in dictionaries).

I'm +0 to take out that request from the PEP.

.	Facundo

More information about the Python-list mailing list