[Python-Dev] PEP 455: TransformDict (original) (raw)
Ethan Furman ethan at stoneleaf.us
Sun Sep 15 02:57:18 CEST 2013
- Previous message: [Python-Dev] PEP 455: TransformDict
- Next message: [Python-Dev] PEP 455: TransformDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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? transformfunc?
transformfunc looks... truncated. Why not transformfunction or transfunc? 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 decoratingfunction() with the userfunction argument. Also findfunction, searchfunction, createfunction, isfunction, isgeneratorfunction, fromfunction, hasfunction, copyfunction, picklefunction, registerfunction, emitfunction, and printfunction. 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
- Previous message: [Python-Dev] PEP 455: TransformDict
- Next message: [Python-Dev] PEP 455: TransformDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]