[issue10576] Add a progress callback to gcmodule

Kristján Valur Jónsson report at bugs.python.org
Sat Apr 7 15:00:09 CEST 2012


Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:

Here is an updated patch, taking Jim's and Antoine's comments into account.

Jim, I´d like to comment that I think the reason __del__ objects are uncollectable is more subtle than there being no defined order of calling the __del__ functions.  More significantly, no python code may be executed during an implicit garbage collection.
Now, it is possible that one could clean up cycles containing only one __del__ method during _expcicit_ collections (calling gc.collect()) but it hardly seems worth the effort.

----------
Added file: http://bugs.python.org/file25150/gccallback.patch

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


More information about the Python-bugs-list mailing list