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/012321.html below:

[Python-Dev] Making mutable objects readonly

[Python-Dev] Making mutable objects readonly [Python-Dev] Making mutable objects readonlyBarry A. Warsaw barry@digicool.com
Mon, 29 Jan 2001 23:25:09 -0500
>>>>> "GvR" == Guido van Rossum <guido@digicool.com> writes:

    GvR> Yes, this is a good thing.  Easy to do on lists and dicts.
    GvR> Questions:

    GvR> - How to spell it?  x.freeze()?  x.readonly()?

    GvR> - Should this reversible?  I.e. should there be an
    GvR> x.unfreeze()?

    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) ...? :)

-Barry



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