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/2003-February/033094.html below:

[Python-Dev] Re: Pre-PEP: Mutable keys in dictionaries

[Python-Dev] Re: Pre-PEP: Mutable keys in dictionaries [Python-Dev] Re: Pre-PEP: Mutable keys in dictionariesGuido van Rossum guido@python.org
Thu, 06 Feb 2003 13:58:51 -0500
> Can __temporary_immutable__ work on a multi-threaded system?  What is to 
> prevent the (known to be mutable) key from changing underneath you during 
> the lookup?  Perhaps I am misunderstanding, but it seems to me that you 
> must either copy the mutable key or be able to block all writers to the key 
> during the lookup.

The sets module has this problem now.  Our approach to this is to
document that sets are not thread-safe.

--Guido van Rossum (home page: http://www.python.org/~guido/)



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