[Python-Dev] Making mutable objects readonly

Eric S. Raymond esr@thyrsus.com
Wed, 31 Jan 2001 12:55:00 -0500


M.-A. Lemburg <mal@lemburg.com>:
> Anyway, names really don't matter much, so how about: 
> 
> .mutable([flag]) -> integer
> 
>   If called without argument, returns 1/0 depending on whether
>   the object is mutable or not. When called with a flag argument,
>   sets the mutable state of the object to the value indicated
>   by flag and returns the previous flag state.

I'll bear this in mind if things progress to the point where a PEP is
indicated.
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>