2013年10月4日 Raymond Hettinger <[email protected] <javascript:;>>:
> This contrasts with other tools like OrderedDict, ChainMap,
> and namedtuple which started their lives outside the standard
> library where we we able observe their fitness for real problems
> being solved by real users.
Why do you say that TransformDict has no real use case, whereas similar
containers are already used since many years in the Python standard
library? Extract of the PEP:
"Several modules in the standard library use identity lookups for object
memoization, for example pickle, json, copy, cProfile, doctest and
_threading_local."
I didn't check this whole list, but it looks like some modules can
directly use TransformDict(id), see for example the copy module.