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 [EMAIL PROTECTED] PGP Key ID: 0x43E5755D _______________________________________________ gnhlug-discuss mailing list [EMAIL PROTECTED] http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss