[Python-Dev] PEP 265 - Sorting Dictionaries by Value

Peter Funk pf@artcom-gmbh.de
Tue, 21 Aug 2001 08:43:00 +0200 (CEST)

Grant Griffin:
> PEP: 265
> Title: Sorting Dictionaries by Value
> 1) Is this useful enough to justify the feature/code bloat?  (Tim has 
> suggested that this might be a hard sell to Guido, so if you like it in 
> whatever form, let's hear from you!)

I think, this is feature bloat.  IMHO using dictionaries as counters
for something is only one very special application of this generic 
basic data structure. 

A standard library module containing a class derived from
dictionary should be able to fullfill this 'batteries included' wish.
The documentation of the builtin type dictionary could contain
pointers to useful derived classes, so that newbies seeking such
a feature have a better chance to find it.

Regards, Peter
Peter Funk, Oldenburger Str.86, D-27777 Ganderkesee, Germany, Fax:+49 4222950260
office: +49 421 20419-0 (ArtCom GmbH, Grazer Str.8, D-28359 Bremen, Germany)