Steven Bethard a écrit :
> Bruno Desthuilliers wrote:
> 
>> If you want to prevent this from happening and don't mind creating a 
>> copy of the list, you can use the sorted() function with the key and 
>> reverse arguments and operator.itemgetter:
>>
(snip)
> 
> You don't need to use sorted() -- sort() also takes the key= and 
> reverse= arguments::
> 
Yeps - thanks for the reminder.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to