On Thu, 22 Apr 2010 02:28:03 am Bala subramanian wrote:
> Friends,
> Someone please write me the difference between creating set with
> set() and a sets.Set().
The sets module, including sets.Set(), were first introduced in Python
2.3 and is written in Python.
The built-in set object was introdu
> When sets were introduced to Python in version 2.3. they came as a separate
> "sets" module.
>
> In version 2.6 built-in set/frozenset types replaced this module.
2.4
> So either way is OK for now, but the sets module might go away in a newer
> version.
agreed
cheers,
-- wesley
- - - - - -
On 4/21/2010 12:28 PM, Bala subramanian wrote:
Friends,
Someone please write me the difference between creating set with set()
and a sets.Set().
When sets were introduced to Python in version 2.3. they came as a
separate "sets" module.
In version 2.6 built-in set/frozenset types replaced th
Friends,
Someone please write me the difference between creating set with set() and a
sets.Set().
>>> a=set([1,2,3])
>>> b=sets.Set([1,2,3])
>>> print a
set([1, 2, 3])
>>> print b
Set([1, 2, 3])
Thanks,
Bala
___
Tutor maillist - Tutor@python.org
To un