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

[Python-Dev] PEP 455: TransformDict

[Python-Dev] PEP 455: TransformDict [Python-Dev] PEP 455: TransformDictAntoine Pitrou solipsis at pitrou.net
Tue Oct 8 21:58:32 CEST 2013
On Tue, 8 Oct 2013 23:36:05 +0400
Yuriy Taraday <yorik.sar at gmail.com> wrote:
> On Tue, Oct 8, 2013 at 10:17 PM, MRAB <python at mrabarnett.plus.com> wrote:
> 
> > If you don't need the original key, then you might as well just use a
> > transform function with a dict.
> 
> As I understood, storing original keys is not the purpose of TransformDict,
> allowing hashing on something other then provided key itself is. This part
> presents interest for the cases I mentioned.

The purpose is really dual. If we didn't want to retain the original
keys, a dedicated class would be much less justified.

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