On Tue, 8 Oct 2013 23:36:05 +0400 Yuriy Taraday <[email protected]> wrote: > On Tue, Oct 8, 2013 at 10:17 PM, MRAB <[email protected]> wrote: > > > If you don't need the original key, then you might as well just use a > > transform function with a dict. > > As I understood, storing original keys is not the purpose of TransformDict, > allowing hashing on something other then provided key itself is. This part > presents interest for the cases I mentioned.
The purpose is really dual. If we didn't want to retain the original keys, a dedicated class would be much less justified. Regards Antoine. _______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
