PyProg PyProg wrote:
Hello all,
I want to use an equivalent of sets module with Python 2.6 ... but
sets module is deprecated on 2.6 version.
set is now a built-in type.
Replace sets.Set() with set()
In fact I want to make that but with Python 2.6:
toto_1 = [0, 1, 2, 3, 4]
toto_2 = [1
On Tue, Mar 17, 2009 at 2:34 PM, PyProg PyProg wrote:
>
> I want to use an equivalent of sets module with Python 2.6 ... but
> sets module is deprecated on 2.6 version.
it is deprecated only because sets have been rolled into Python proper
starting in 2.4. replace sets.Set() with set(), and there
Hello all,
I want to use an equivalent of sets module with Python 2.6 ... but
sets module is deprecated on 2.6 version.
In fact I want to make that but with Python 2.6:
>>> toto_1 = [0, 1, 2, 3, 4]
>>> toto_2 = [1, 127, 4, 7, 12]
>>>
>>> import sets
>>> a = sets.Set(toto_1)
>>> b = sets.Set(toto