[Python-Dev] PEP 455: TransformDict (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Fri Sep 13 23:20:25 CEST 2013
- Previous message: [Python-Dev] PEP 455: TransformDict
- Next message: [Python-Dev] PEP 455: TransformDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 14 Sep 2013 00:05:27 +0300 Serhiy Storchaka <storchaka at gmail.com> wrote:
13.09.13 23:21, Antoine Pitrou написав(ла): > On Fri, 13 Sep 2013 23:16:10 +0300 > Serhiy Storchaka <storchaka at gmail.com> wrote: >> 13.09.13 21:40, Antoine Pitrou написав(ла): >>> Alternative proposals and questions >>> =================================== >> >> Yet one alternative proposal is to add the dict.transform() method. >> Actually this not contradict TransformDict, but generalize it. >> TransformDict will be just handly interface to transform() as >> defaultdict to missing(). It provides only constructor, repr and >> pickling. > > Is it an alternative proposal or is it compatible with the PEP? > The PEP specifies the API, not the implementation.
Both. On one side, with this proposition TransformDict itself doesn't deserve PEP. It will be trivial and obvious thing.
Well, TransformDict would still be the user-visible API, not transform; like defaultdict is the user-visible API, not missing.
Regards
Antoine.
- Previous message: [Python-Dev] PEP 455: TransformDict
- Next message: [Python-Dev] PEP 455: TransformDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]