[issue10576] Add a progress callback to gcmodule
report at bugs.python.org
Thu Dec 23 22:26:23 CET 2010
Lukas Lueg <lukas.lueg at gmail.com> added the comment:
Why not make the start-callback be able to return a boolean value to the gcmodule that indicates if garbage collection should take place or not.
For example, any value returned from the callback that evaluates to False (like null) will cause the module to evaluate any other callback and possibly collect garbage objects. Any value that evaluates to True (like True) returned from any callback causes all further callbacks to not be called and garbage collection not to take place now.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list