mirror of
https://github.com/python/cpython.git
synced 2026-05-28 13:20:56 +00:00
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.
This commit is contained in:
parent
eb977dac9c
commit
bbe2f60b3c
5 changed files with 115 additions and 3 deletions
|
|
@ -127,6 +127,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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue