A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-January/012406.html below:

[Python-Dev] Making mutable objects readonly

[Python-Dev] Making mutable objects readonly [Python-Dev] Making mutable objects readonlyM.-A. Lemburg mal@lemburg.com
Wed, 31 Jan 2001 21:36:54 +0100
"Eric S. Raymond" wrote:
> 
> 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.

Great :)

-- 
Marc-Andre Lemburg
______________________________________________________________________
Company:                                        http://www.egenix.com/
Consulting:                                    http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4