summaryrefslogtreecommitdiffstats
path: root/Lib/_weakrefset.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36949: Implement __repr__ on WeakSet (GH-13415)Batuhan Taşkaya2019-05-201-0/+3
|
* bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)Jon Dufresne2017-05-181-3/+3
| | | | | | | | * Replaced list(<generator expression>) with list comprehension * Replaced dict(<generator expression>) with dict comprehension * Replaced set(<list literal>) with set literal * Replaced builtin func(<list comprehension>) with func(<generator expression>) when supported (e.g. any(), all(), tuple(), min(), & max())
* bpo-29762: More use "raise from None". (#569)Serhiy Storchaka2017-04-051-1/+1
| | | This hides unwanted implementation details from tracebacks.
* Issue #20006: Fix sporadic failures in test_weakset.Antoine Pitrou2013-12-171-0/+2
|
* Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.Meador Inge2012-03-051-6/+6
|
* Fix some set algebra methods of WeakSet objects.Antoine Pitrou2012-03-041-29/+12
|
* Port 2.7 fix for sporadic failure in test_weakset.Antoine Pitrou2012-03-041-5/+2
|
* Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, ↵Antoine Pitrou2012-03-011-1/+1
| | | | | | | WeakValueDictionary) to return a better approximation when some objects are dead or dying. Moreover, the implementation is now O(1) rather than O(n). Thanks to Yury Selivanov for reporting.
* #10360: catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary ↵Georg Brandl2010-12-031-1/+5
| | | | does.
* Issue #7105: Make WeakKeyDictionary and WeakValueDictionary robust againstAntoine Pitrou2010-01-081-5/+69
| | | | the destruction of weakref'ed objects while iterating.
* Issue 5964: Fixed WeakSet __eq__ comparison to handle non-WeakSet objects.Robert Schuppenies2009-05-171-0/+2
|
* Add a test suite for WeakSet mostly derived from test_set and fix someGeorg Brandl2008-05-181-12/+42
| | | | issues in the weakset implementation discovered with it.
* Fix two issues in the weak set implementation.Georg Brandl2008-05-181-2/+5
|
* Moved WeakSet into a bootstap module use by abc.py.Raymond Hettinger2008-02-051-0/+111
This makes it possible to use ABCs in weakref.py (which will be done in a later checkin).