Robert Kern wrote:
> MackS wrote:
> 
>> Dear all,
>>
>> I've got several large sets in my program. After performing several
>> operations on these I wish to present one set to the user [as a list]
>> sorted according to a certain criterion. Is there any direct way to do
>> so? Or must I
>>
>> list = []
>>
>> for item in set1:
>>    list.append(item)
>>
>> list.sort(....)

So, for this example, just do:

sorted(set1)


-- 
Brian Beck
Adventurer of the First Order
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to