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

[Python-Dev] PEP 455: TransformDict

[Python-Dev] PEP 455: TransformDictEthan Furman ethan at stoneleaf.us
Sun Sep 15 02:57:18 CEST 2013
On 09/14/2013 05:32 PM, Serhiy Storchaka wrote:
> 15.09.13 00:58, Antoine Pitrou написав(ла):
>> On Sun, 15 Sep 2013 00:55:35 +0300
>> Serhiy Storchaka <storchaka at gmail.com> wrote:
>>> 14.09.13 20:41, Antoine Pitrou написав(ла):
>>>> No good reason. What's the name? transform_func?
>>>
>>> transform_func looks... truncated. Why not transform_function or trans_func?
>>
>> The stdlib commonly uses "func" rather than "function". For example
>> "functools", where partial has an attribute named "func".
>> I suppose it's like "int" vs. "integer".
>
> The same functools has decorating_function() with the user_function argument.
>
> Also find_function, search_function, create_function, isfunction, isgeneratorfunction, from_function, has_function,
> copy_function, pickle_function, register_function, emit_function, and print_function. This is not counting tests, IDLE
> and private names.

The name of the parameter in __init__ is 'transform'.  We could just call it that.

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