lists - append - unique and sorted

Terry Reedy tjreedy at udel.edu
Thu Jun 7 20:02:38 CEST 2007


"Dan Bishop" <danb_83 at yahoo.com> wrote in message 
news:1181181710.879767.234090 at m36g2000hse.googlegroups.com...
| If you don't need the list to be sorted until you're done building it,
| you can just use:
|
| lst = sorted(set(lst))

?? looks same as
lst.sort() 






More information about the Python-list mailing list