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

[Python-Dev] Re: Making mutable objects readonly

[Python-Dev] Re: Making mutable objects readonly [Python-Dev] Re: Making mutable objects readonlyBarry A. Warsaw barry@digicool.com
Mon, 29 Jan 2001 23:26:50 -0500
>>>>> "ESR" == Eric S Raymond <esr@thyrsus.com> writes:

    ESR> Fortunately, there's a semantics that captures both.  If we
    ESR> allow freeze to take an optional key argument, and require
    ESR> that an unfreeze call must supply the same key or fail, we
    ESR> get both worlds.  We can even one-way-hash the keys so they
    ESR> don't have to be stored in the bytecode.

    ESR> Want to lock a structure permanently?  Pick a random long
    ESR> key.  Freeze with it.  Then throw that key away...

Clever!



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