Commit Graph

10 Commits

Author SHA1 Message Date
Meador Inge 653f932eff Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive. 2012-03-04 22:15:38 -06:00
Antoine Pitrou 9c47ac05d1 Fix some set algebra methods of WeakSet objects. 2012-03-04 20:47:05 +01:00
Antoine Pitrou de89d4b097 Port 2.7 fix for sporadic failure in test_weakset. 2012-03-04 20:20:34 +01:00
Antoine Pitrou bbe2f60b3c Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, 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.
2012-03-01 16:26:35 +01:00
Georg Brandl f8de3fea12 #10360: catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does. 2010-12-03 07:55:44 +00:00
Antoine Pitrou c1baa601e2 Issue #7105: Make WeakKeyDictionary and WeakValueDictionary robust against
the destruction of weakref'ed objects while iterating.
2010-01-08 17:54:23 +00:00
Robert Schuppenies 4ad1d6f81a Issue 5964: Fixed WeakSet __eq__ comparison to handle non-WeakSet objects. 2009-05-17 17:32:20 +00:00
Georg Brandl 9dba5d9764 Add a test suite for WeakSet mostly derived from test_set and fix some
issues in the weakset implementation discovered with it.
2008-05-18 16:27:29 +00:00
Georg Brandl bf93b0470a Fix two issues in the weak set implementation. 2008-05-18 07:46:13 +00:00
Raymond Hettinger 93fa608626 Moved WeakSet into a bootstap module use by abc.py.
This makes it possible to use ABCs in weakref.py
(which will be done in a later checkin).
2008-02-05 00:20:01 +00:00