[issue10576] Add a progress callback to gcmodule

Lukas Lueg report at bugs.python.org
Sun Dec 26 18:05:09 CET 2010


Lukas Lueg <lukas.lueg at gmail.com> added the comment:

Collection may re-occur at any time, there is no promise to the callback code. However, the callback can disable the gc, preventing further collection.

I don't think we need the other callbacks to be informed. As the callbacks are worked down in the order they registered, whoever comes first is served first. Returning True from the callback is mereley a "I dont mind if gc happens now..."

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10576>
_______________________________________


More information about the Python-bugs-list mailing list