[Python-ideas] Identity dicts and sets

Serhiy Storchaka storchaka at gmail.com
Thu Jan 3 12:50:29 CET 2013


On 02.01.13 23:33, Bruce Leban wrote:
> I agree collections is the place to put it but that would give us three
> specialized subclasses of dictionary which cannot be combined. That is,
> I can have a dictionary with a default, one that is ordered or one that
> uses a key function but not any combination of those. It would seem
> better to have something like Haoyi Li suggested:
>
> collections.Dictionary(default=None, ordered=False, key=None) --> a dict
> subclass

I doubt if such combinations have a sense. At least not all features can 
be combined.





More information about the Python-ideas mailing list