PRE-PEP: new Path class; sorting and __cmp__
exarkun at intarweb.us
Fri Jan 9 20:00:53 CET 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
> 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:
In particular, the ones talking about `attrget'.
More information about the Python-list