Ethan Smith
|
8ef875028a
|
bpo-39481: Make weakref and WeakSet generic (GH-19497)
|
2020-04-13 21:54:40 -07:00 |
Batuhan Taşkaya
|
5ae1c84bcd
|
bpo-36949: Implement __repr__ on WeakSet (GH-13415)
|
2019-05-20 10:01:07 -07:00 |
Jon Dufresne
|
3972628de3
|
bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)
* 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())
|
2017-05-18 07:35:54 -07:00 |
Serhiy Storchaka
|
5affd23e6f
|
bpo-29762: More use "raise from None". (#569)
This hides unwanted implementation details from tracebacks.
|
2017-04-05 09:37:24 +03:00 |
Antoine Pitrou
|
320b39158e
|
Issue #20006: Fix sporadic failures in test_weakset.
|
2013-12-18 00:28:36 +01: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
|
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 |