A RetroSearch Logo

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

Search Query:

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

[Python-Dev] Making mutable objects readonly

[Python-Dev] Making mutable objects readonly [Python-Dev] Making mutable objects readonlyMark Hammond MarkH@ActiveState.com
Wed, 31 Jan 2001 23:18:12 +1100
MAL writes:

> > - How to spell it?  x.freeze()?  x.readonly()?
>
> How about .lock() and .unlock() ?

I'm with Greg here - lock() and unlock() imply an operation similar to
threading.Lock() - ie, exclusivity rather than immutability.

I don't have a strong opinion on the other names, but definately prefer any
of the others over lock() for this operation.

Mark.




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