On Thu, 2 Mar 2006, Kent Johnson wrote:
> In [9]: lst.sort(key=attrgetter('b')); print lstThanks, Kent! I didn't know about "key=". I see it's new in 2.4. I was thinking I'd have to put in a method for each potentially sortable field. _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
