"Andy Cheesman" <[EMAIL PROTECTED]> wrote

> only way of interconversion a brute force method?
> 
> i.e a = set([1, 2, 3])
> b = []
> for thing in a:
> b.append(thing)

Which looks a lot like a list comprehension:

b = [member for member in Set([1,2,3])]

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to