18 Oct
2002
18 Oct
'02
1:38 p.m.
On Fri, Oct 18, 2002 at 09:35:47AM -0400, Casey Duncan wrote:
Ick, no lambda needed:
items = context.objectItems() items.sort() for id, object in items: print id, object return printed
sort is *much* faster when you don't use a comparison function as well (though sometimes you do need them).
then you'd have to call reverse() too, because he wanted them in reverse order. bye, Jerome Alet