Michael Janssen wrote:
> you can specify your own comparing funtion for aList.sort().

Since Python 2.4, supplying a key function to list.sort() is generally 
preferable to a cmp function - the key function is easier to write and 
it is more efficient to use. See my reply to Matt for an example.

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to