Antoine Pitrou <pit...@free.fr> added the comment:

I can't find a way to reproduce as a unit test.
Here is a patch making __len__ O(1) as well (instead of O(n)). Could you try it?

(note : AFAICT, a similar issue exists for weak dicts)

----------
stage:  -> needs patch
versions: +Python 2.7
Added file: http://bugs.python.org/file24682/weaksetlen.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14159>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to