Hello

I've stumble to find a solution to get a list from a set

<code>

>>> aa= ['a','b','c','f']
>>> aa
['a', 'b', 'c', 'f']
>>> set(aa)
{'a', 'c', 'b', 'f'}
>>> [k for k in aa]
['a', 'b', 'c', 'f']

</code>
I repute the comprehension list too expensive, is there another method?

-- 
goto /dev/null
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to