PRE-PEP: new Path class; sorting and __cmp__

Jp Calderone exarkun at intarweb.us
Fri Jan 9 14:00:53 EST 2004


On Fri, Jan 09, 2004 at 07:41:32PM +0100, Christoph Becker-Freyseng wrote:
> As I pointed out path.__cmp__ should not be used for e.g. comparing 
> filesizes.
> 
> But features like sorting on filesizes are very useful.
> I'm not sure if Gerrit Holl already meant this in his conclusion on 
> "Comparing files" in the PEP.
> I'll outline it a bit ...

  This seems to be covered by the new builtin DSU support which will exist
in 2.4.  See the (many, many) posts on python-dev on the "groupby" iterator:

    http://mail.python.org/pipermail/python-dev/2003-December/thread.html

  In particular, the ones talking about `attrget'.

  Jp




More information about the Python-list mailing list