sets
Raymond Hettinger
vze4rx4y at verizon.net
Fri Nov 28 12:22:56 EST 2003
More information about the Python-list mailing list
Fri Nov 28 12:22:56 EST 2003
- Previous message (by thread): sets
- Next message (by thread): Python parser generators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Brett C. wrote: > > Sets now at blazing C speeds! > > ----------------------------- > > Raymond Hettinger implemented the sets API in C! The new built-ins are > > set (which replaces sets.Set) and frozenset (which replaces > > sets.ImmutableSet). The APIs are the same as the sets module sans the > > name change from ImmutableSet to frozenset. "Gerrit Holl" > Will the sets module now be deprecated? No, sets.py will be left alone so that existing code continues to run. Also, sets.py continues to have value for anyone needing its autoconversion feature that was not included for set(). Also, sets.py was made compatible with Py2.2, so it can be shipped with code that needs to run on older pythons. > Or will they stay and be re-implemented so they become like UserDict, > UserList, UserString? Do not expect more additions to the User**** series, the need for them was almost completely subsumed by the ability to subclass a builtin type. One could envision a SetMixin; however, performance considerations will be a strong force towards always using real sets. Raymond Hettinger
- Previous message (by thread): sets
- Next message (by thread): Python parser generators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list