Manipulating MySQL Sets

Sebastian Bassi sbassi at clubdelarazon.org
Sun Dec 13 12:26:33 EST 2009


On Sun, Dec 13, 2009 at 2:10 PM, Carsten Haese <carsten.haese at gmail.com> wrote:
>>>> from sets import Set
>>>> aSet = Set(['Small', 'Extra-small', 'Medium'])

You don't need to import "Set" since it is built in now:

>>> a=set([1,2,2,3,4,5])
>>> a
set([1, 2, 3, 4, 5])

(I have Python 2.6.2 but I think that this is available from 2.4 or 2.5).



More information about the Python-list mailing list