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

[Python-Dev] PEP 455: TransformDict

[Python-Dev] PEP 455: TransformDict [Python-Dev] PEP 455: TransformDictSerhiy Storchaka storchaka at gmail.com
Sat Sep 14 21:07:50 CEST 2013
14.09.13 20:41, Antoine Pitrou написав(ла):
> On Sat, 14 Sep 2013 09:43:13 -0700
> Ethan Furman <ethan at stoneleaf.us> wrote:
>> Still, I think it would be useful to expose the transform function.
>> Any good reason not to?
>
> No good reason. What's the name? transform_func?

There is one reason -- serialization. For example pickle saves the 
transform function as an argument for TransformDict constructor. Repr 
exposes the transform function too (in evaluable representation). Other 
serializers need the transform function too. My implementations expose 
it as public property (transform), your -- as private attribute 
(_transform).

Or perhaps I misunderstood you?


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