Jim Jewett <jimjjew...@users.sourceforge.net> added the comment:

I like the idea, but I do quibble with the signature.  As nearly as I can tell, 
you're assuming

(a)  Only one callback.  I would prefer a sequence of callbacks, to make 
cooperation easier.  (This does mean you would need a callback removal, instead 
of just setting it to None.)

(b)  The callback will be called once before collecting generations, and once 
after (with the number of objects that weren't collected).  Should these be 
separate callbacks, rather than the same one with a boolean?  And why does it 
need the number of uncollected objects?  (This might be a case where 
Practicality Beats Purity, but it is worth documenting.)

----------
nosy: +jimjjewett

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

Reply via email to