commit | c56bca31e9b7ac87a459a65680ee7ad454fd4f22 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Thu Mar 01 16:26:35 2012 +0100 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Thu Mar 01 16:26:35 2012 +0100 |
tree | feb3b4fe1a430192589fc1332c6d1d0a3dbc53aa | |
parent | 4666ebd8fae8e115dc51b25d630481b15613e94d [diff] |
Issue #14159: Fix the len() of weak sets 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.