Antoine Pitrou <pit...@free.fr> added the comment: > All this patch does, is to generalize the mechanism already provided > for genobject.c (by PyGen_NeedsFinalizing()), to any object: Any > object can signal to gc that: a) it is ok to collect a cycle with me > in it, or b) no, it is unsafe to do so. With this patch in place, > PyGen_NeedsFinalizing() no longer needs to be a special case in > gcmodule.c.
Adding an API function and an additional traversal pass to the GC just for the sake of removing a special case doesn't seem reasonable to me. That's why I'm asking what specific problem you are trying to solve. (rather than simply trying to make things "nicer") ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9141> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com