[Python-Dev] Making mutable objects readonly
Barry A. Warsaw
Mon, 29 Jan 2001 23:25:09 -0500
>>>>> "GvR" == Guido van Rossum <firstname.lastname@example.org> writes:
GvR> Yes, this is a good thing. Easy to do on lists and dicts.
GvR> - How to spell it? x.freeze()? x.readonly()?
GvR> - Should this reversible? I.e. should there be an
GvR> - Should we support something like this for instances too?
GvR> Sometimes it might be cool to be able to freeze changing
GvR> attribute values...
lock(x) ...? :)