On 10 September 2013 16:08, Paul Moore <p.f.mo...@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' _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com