Antoine Pitrou <pit...@free.fr> added the comment: > Look again. gcmodule specifically takes any objects reachable from > ob_clear and sees if any of them have side effects when Py_DECREF'd.
has_finalizer() in gcmodule.c doesn't check for weakref callbacks, so a weakref callback can still be invoked from tp_dealloc. ---------- _______________________________________ 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