STINNER Victor added the comment: > Do you have an example of code that behaves differently with this patch? I > can't find any.
I didn't check in the Python standard library, but the reference cycle is obvious, and I hate such issue. It introduces tricky issues like memory leaks. Here is an example to demonstrate the issue. The "DELETE OBJECT" message is never displayed, so the object is never deleted (memory leak). Comment "fut.set_exception(err)" line to delete the object, or apply attached patch. ---------- Added file: http://bugs.python.org/file33238/never_deleted.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20032> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com