summaryrefslogtreecommitdiff
path: root/Lib/sets.py
AgeCommit message (Expand)AuthorLines
2005-08-13Teach set modules to correctly compute s-=s and s^=s as the empty set.Raymond Hettinger-0/+4
2003-11-19Remove deprecation of sets.Set.update().Raymond Hettinger-4/+0
2003-11-12Improve backwards compatibility code to handle True/False.Raymond Hettinger-0/+4
2003-09-08Set the warnings stacklevel to two.Raymond Hettinger-2/+2
2003-08-17Improvements to set.py:Raymond Hettinger-38/+57
2003-08-15Make sets.py compatible with Py2.2Raymond Hettinger-1/+19
2003-06-26Portion of SF patch #761104. Fixes a minor docstring error.Raymond Hettinger-4/+3
2003-03-02SF bug 693121: Set == non-Set is a TypeError.Tim Peters-6/+26
2003-02-14SF bug #663701: sets module reviewRaymond Hettinger-7/+7
2003-02-09C Code:Raymond Hettinger-6/+6
2003-02-04Whitespace normalization.Tim Peters-1/+1
2003-02-02One more use of ifilter()Raymond Hettinger-3/+2
2003-02-02SF patch #678899: Save time and memory by using itertools in sets module.Raymond Hettinger-19/+11
2003-01-14Explicitly raise an exception in __cmp__ -- this clarifies that cmp()Guido van Rossum-0/+5
2002-11-25SF 643115: Set._update() had a special case for dictionaries which allowedRaymond Hettinger-3/+0
2002-11-13Add getstate and setstate implementation to concrete set classes.Jeremy Hylton-0/+12
2002-11-08Another attempt at making the set constructor both safe and fast. [SFGuido van Rossum-18/+24
2002-11-08_update(): Commented the new obscurity. Materialized into a tupleTim Peters-2/+8
2002-11-08Closes SF bug #628246.Raymond Hettinger-0/+2
2002-10-04.iterkeys() is not needed.Raymond Hettinger-1/+1
2002-08-29Sped _update().Raymond Hettinger-0/+9
2002-08-26Gave intersection_update a speed boost.Tim Peters-3/+1
2002-08-25Gave issubet() and issuperset() major speed boosts. That's it for now!Tim Peters-2/+4
2002-08-25Gave __sub__/difference a factor of 2-5 speed boost.Tim Peters-1/+2
2002-08-25Gave __xor__/symmetric_difference a factor of 2-5 speed boost.Tim Peters-4/+6
2002-08-25Sped union by a factor of 3-4.Tim Peters-1/+2
2002-08-25Sped intersection by large factors (3-5x faster than before on sets ofTim Peters-7/+2
2002-08-25Added a clue about why xyz_update isn't the same as __xyz__.Tim Peters-1/+4
2002-08-25Implemented <, <=, >, >= for sets, giving subset and proper-subsetTim Peters-0/+12
2002-08-25Record a clue about why __or__ is not union, etc.Tim Peters-0/+5
2002-08-24Removed < <= > >= from the API. Implemented as comparisons of theRaymond Hettinger-18/+1
2002-08-24At Tim Peter's suggestion, propagated GvR's binary operator changes toRaymond Hettinger-8/+16
2002-08-24Since instances of _TemporarilyImmutableSet are always thrown awayRaymond Hettinger-5/+1
2002-08-241. Removed module self test in favor of unittests -- Timbot's suggestion.Raymond Hettinger-109/+7
2002-08-23pop() docstring: this isn't a randomly-chosen element, it's merelyTim Peters-1/+1
2002-08-23Comment repair.Tim Peters-4/+4
2002-08-23RH pointed out that discard(element) doesn't do the transformation onGuido van Rossum-1/+1
2002-08-22Change the binary operators |, &, ^, - to return NotImplemented ratherGuido van Rossum-14/+40
2002-08-21Now that __init__ transforms set elements, we know that all of theRaymond Hettinger-1/+3
2002-08-21Sped ._update() method by factoring try/except out of the inner loop.Raymond Hettinger-4/+5
2002-08-21Ouch. The test suite *really* needs work!!!!! There were severalGuido van Rossum-46/+38
2002-08-21Add Raymond H to the list of authors; add some XXX comments aboutGuido van Rossum-0/+9
2002-08-21Fast size check for sub/super set testsRaymond Hettinger-0/+4
2002-08-21Optimize try/except ordering in sets.py.Raymond Hettinger-25/+25
2002-08-20Minor typoRaymond Hettinger-1/+1
2002-08-20Rename popitem() to pop(). (An idea from SF patch 597444.)Guido van Rossum-1/+1
2002-08-20Move __init__ from BaseSet into Set and ImmutableSet. This causes aGuido van Rossum-16/+28
2002-08-20Add a note reminding the reader that sets are not sequences. IGuido van Rossum-0/+10
2002-08-19Fix typo in __slots__ of ImmutableSet.Guido van Rossum-1/+1
2002-08-19Set classes and their unit tests, from sandbox.Guido van Rossum-0/+529