[Python-Dev] Add a "transformdict" to collections
Armin Rigo
arigo at tunes.org
Tue Sep 10 16:15:56 CEST 2013
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).
A bientôt,
Armin.
More information about the Python-Dev
mailing list