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

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

[Python-Dev] Add a "transformdict" to collections [Python-Dev] Add a "transformdict" to collectionsJanzert janzert at janzert.com
Tue Sep 10 17:54:20 CEST 2013
On 9/10/2013 10:54 AM, Antoine Pitrou wrote:
> (also, I would intuitively expect the latest key to be held, not the
> first one, since that's what happens for values.)
>
> Regards
>
> Antoine.
>

I intuitively expected, and I think most often would want, the first key 
to be held. The reason being that I would except most often the initial 
insertion to be the canonical form.

Whichever way is adopted, I think even if you say it's implementation 
specific, people will end up relying on it in their code.

Janzert

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