[Tutor] set and sets.Set

bob gailer bgailer at gmail.com
Wed Apr 21 18:38:46 CEST 2010


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 this module.

So either way is OK for now, but the sets module might go away in a 
newer version.

-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list