[Python-Dev] Add a "transformdict" to collections

Antoine Pitrou solipsis at pitrou.net
Tue Sep 10 23:06:07 CEST 2013

On Tue, 10 Sep 2013 17:38:26 -0300
"Joao S. O. Bueno" <jsbueno at python.org.br> wrote:
> On 10 September 2013 16:08, Paul Moore <p.f.moore at gmail.com> wrote:
> > If you provide "retain the last", I can't see any obvious way of
> > implementing "retain the first" in application code without in effect
> > reimplementing the class.
> Which reminds one - this class should obviously have a method for
> retrivieng the original key value, given a matching key -
> d.canonical('foo') -> 'Foo'

I don't know. Is there any use case?
(sure, it is trivially implemented)



More information about the Python-Dev mailing list