Benjamin Peterson
|
6724612755
|
add test for inequality
|
2013-05-22 13:27:25 -07:00 |
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
|
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 |
Antoine Pitrou
|
95a97b7c0c
|
Delete the iterator, which could accidentally keep a temporary reference to the yielded element.
|
2012-02-21 00:00:06 +01:00 |
Georg Brandl
|
f8de3fea12
|
#10360: catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does.
|
2010-12-03 07:55:44 +00:00 |
Ezio Melotti
|
b58e0bd8bb
|
use assert[Not]In where appropriate
|
2010-01-23 15:40:09 +00:00 |
Benjamin Peterson
|
577473fe68
|
use assert[Not]In where appropriate
A patch from Dave Malcolm.
|
2010-01-19 00:09:57 +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 |
Benjamin Peterson
|
c9c0f201fe
|
convert old fail* assertions to assert*
|
2009-06-30 23:06:06 +00:00 |
Robert Schuppenies
|
4ad1d6f81a
|
Issue 5964: Fixed WeakSet __eq__ comparison to handle non-WeakSet objects.
|
2009-05-17 17:32:20 +00:00 |
Benjamin Peterson
|
ee8712cda4
|
#2621 rename test.test_support to test.support
|
2008-05-20 21:35:26 +00:00 |
Georg Brandl
|
02c0bbbe6d
|
Ignore test_c_api when checking for set methods. Thanks Brett!
|
2008-05-18 21:04:46 +00:00 |
Georg Brandl
|
192197064b
|
Better diagnostic.
|
2008-05-18 17:10:40 +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 |