Converting a set into list

TheSaint nobody at nowhere.net.no
Mon May 16 10:23:07 EDT 2011


Thomas Rachel wrote:

> Which loops do you mean here?

list(set) has been proved to largely win against
list = []
for item in set:
    list.append(item)
or [list.append(item) for item in set]

-- 
goto /dev/null



More information about the Python-list mailing list