Daniel Stutzbach <dan...@stutzbachenterprises.com> added the comment:

Benjamin,

Thanks for the feedback.  Since you only commented on the test case, may I 
assume that the fix itself looked good to you?

I will work on revising the test case based on your comments.  Since I ran into 
the bug while working with the ABCs in the collections module, that biased my 
thinking when writing the test.  :-)  

I needed to define__len__ because it's an abstract method in the ABC I used in 
the test (collections.Sized).  I found that overriding it again in a 
sub-sub-class and calling it were necessary to trigger all of the ABC machinery 
leading to the leak.

----------

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

Reply via email to