Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary,…
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.
Showing
Please
register
or
sign in
to comment