[Python-Dev] PEP 455: TransformDict (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Fri Sep 13 22:16:10 CEST 2013
- Previous message: [Python-Dev] PEP 455: TransformDict
- Next message: [Python-Dev] PEP 455: TransformDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
My second patch for http://bugs.python.org/issue18986 shows that as implementation of dict.transform(), so implementation of TransformDict using dict.transform() are simple enough.
- Previous message: [Python-Dev] PEP 455: TransformDict
- Next message: [Python-Dev] PEP 455: TransformDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]