On 10 September 2013 18:06, Antoine Pitrou <[email protected]> wrote:
> On 2013年9月10日 17:38:26 -0300
> "Joao S. O. Bueno" <[email protected]> wrote:
>> On 10 September 2013 16:08, Paul Moore <[email protected]> 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)
Well, I'd expect it to simply be there. I had not thought of
other usecases for the transformdict itself -