How to make an immutable instance
FBatista at uniFON.com.ar
Fri Jun 18 14:59:01 CEST 2004
#- 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.
More information about the Python-list