summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-03-01 15:28:14 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-03-01 15:28:14 (GMT)
commit0836baa46af9349b79976f751ac8d569cb256edf (patch)
treeeecf806dbbb66d846e869ccd7665aa1438a12c02 /Misc
parentd7aff2d696bd4b0e074cb57544443e6706da9a52 (diff)
parentbbe2f60b3c19ecaa02ca07be14474eaacfcb59a0 (diff)
downloadcpython-0836baa46af9349b79976f751ac8d569cb256edf.zip
cpython-0836baa46af9349b79976f751ac8d569cb256edf.tar.gz
cpython-0836baa46af9349b79976f751ac8d569cb256edf.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 6214d1e..6258bc4 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -508,6 +508,11 @@ Core and Builtins
Library
-------
+- 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).
+
- Issue #13125: Silence spurious test_lib2to3 output when in non-verbose mode.
Patch by Mikhail Novikov.