Scope rule pecularities

Antoon Pardon apardon at forel.vub.ac.be
Fri May 14 03:21:31 EDT 2004


Op 2004-05-13, Aahz schreef <aahz at pythoncraft.com>:
> In article <slrnca6akg.1i9.apardon at trout.vub.ac.be>,
> Antoon Pardon  <apardon at forel.vub.ac.be> wrote:
>>
>>Well one could drop the immutability of certain classes instead. One
>>would then loose the immutabilty purity and gain the consistency
>>purity. In a choice between those two purities I would choose the
>>latter.
>
> That won't fly.  What do you use for dict keys?

You make a copy of the key and use the copy in the internals
of the dictionary.

-- 
Antoon Pardon



More information about the Python-list mailing list