[Python-ideas] ordered dict

BJörn Lindqvist bjourne at gmail.com
Sat Apr 21 17:17:07 CEST 2007


On 4/21/07, Terry Reedy <tjreedy at udel.edu> wrote:
> But it *is* currently a problem for lists that will become much more
> extensive in the future, so it *is* currently a problem for sorted dicts
> that will be much more of a problem in the future.  Hence, sorted dicts
> will have to be restricted to one type or one group of truly comparable
> types.

Alternatively, you could require a comparator function to be specified
at creation time.

-- 
mvh Björn



More information about the Python-ideas mailing list