Serhiy Storchaka added the comment: I think that reference loop breaker should be smarter. If we have a loop
A ⇄ B → C → D then the order of the finalization of A and B is not defined, but B should be finalized before C and C before D. This should fix unintentional issues with chained io classes because they have no back references. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22996> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com