[Python-Dev] Add a "transformdict" to collections
Ethan Furman
ethan at stoneleaf.us
Wed Sep 11 18:04:25 CEST 2013
More information about the Python-Dev mailing list
Wed Sep 11 18:04:25 CEST 2013
- Previous message: [Python-Dev] Add a "transformdict" to collections
- Next message: [Python-Dev] Add a "transformdict" to collections
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 09/11/2013 08:48 AM, Antoine Pitrou wrote: > Le Wed, 11 Sep 2013 07:48:56 -0700, > Ethan Furman <ethan at stoneleaf.us> a écrit : >> >> Personally, I wouldn't mind having all four; for one thing, the name >> 'transformdict' would then be entirely appropriate. ;) > > The key decoder function is quite useless since the original key is > retained. As for the value encoder/decoder, I don't really see the > point: just store whichever value you want to retrieve later. The main > point of transformdict is that the *lookup* is done using a different > key than the user-provided key. Very good points. I am convinced. -- ~Ethan~
- Previous message: [Python-Dev] Add a "transformdict" to collections
- Next message: [Python-Dev] Add a "transformdict" to collections
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list