Converting a set into list
TheSaint
nobody at nowhere.net.no
Sat May 14 10:14:40 EDT 2011
Peter Otten wrote:
> mylist = list(myset)
> Do you notice the similarity to converting a list to a set?
>
There was something confusing me yesterday in doing that, but (for me
strangely) I got cleared out.
The point was that after a result from:
newset= set(myset1) & set(myset2)
list= [newset]
<< [{'bla', 'alb', 'lab'}]
Probably list(set) is not like [set].
--
goto /dev/null
More information about the Python-list
mailing list