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

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

[Python-Dev] Add a "transformdict" to collections [Python-Dev] Add a "transformdict" to collectionsEthan Furman ethan at stoneleaf.us
Wed Sep 11 16:48:56 CEST 2013
On 09/11/2013 06:58 AM, Victor Stinner wrote:
>
> The os.environ mapping uses a subclass of MutableMapping which
> accepts 4 functions: encoder/decoder for the key and encoder/decoder
> for the value. Such type is even more generic. transformdict cannot
> replace os._Environ.

True, it's more generic -- but is it used more often?  Or often enough to have those four functions be part of 
transformdict instead of just the one encodekey function?  (I mean the idea of os._Environ, not that specific 
implementation.)

Personally, I wouldn't mind having all four; for one thing, the name 'transformdict' would then be entirely appropriate.  ;)

--
~Ethan~
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