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/2013-September/128516.html below:

[Python-Dev] Add a "transformdict" to collections

[Python-Dev] Add a "transformdict" to collections [Python-Dev] Add a "transformdict" to collectionsAntoine Pitrou solipsis at pitrou.net
Tue Sep 10 16:37:57 CEST 2013
Le Tue, 10 Sep 2013 16:15:56 +0200,
Armin Rigo <arigo at tunes.org> a écrit :
> Hi Richard,
> 
> On Tue, Sep 10, 2013 at 3:42 PM, Richard Oudkerk <shibturn at gmail.com>
> wrote:
> > I guess another example is creating an "identity dict" (see
> > http://code.activestate.com/lists/python-ideas/7161/) by doing
> >
> >     d = transformdict(id)
> 
> This is bogus, because only the id will be stored, and the original
> key object will be forgotten (and its id probably reused).

No, the original key is kept as well.

Regards

Antoine.


More information about the Python-Dev mailing list

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