sorting pathnames by basename

Cole Tuininga colet at code-energy.com
Tue Aug 20 12:45:25 EDT 2002


On Tue, 2002-08-20 at 11:57, Erik Price wrote:

> Actually, I tried to write it more densely but couldn't.  I'm not a 
> Python guru by any stretch, but I had thought that I could use "for key 
> in sorted.sort()" instead of having the sort() method call on a separate 
> line.  Apparently I can't.  

Nope - you can't.  A call to the sort method doesn't return another
list, nor even a reference to the list.  In fact, what it does return is
a "None" object that python uses rather than "Null".

-- 
"Ha ha - you may be right, but remember!  You are also 
flammable..."  -Donald, one of my psycho cousins

Cole Tuininga
Lead Developer
Code Energy, Inc
colet at code-energy.com
PGP Key ID: 0x43E5755D





More information about the gnhlug-discuss mailing list