Antoine Pitrou added the comment: Concretely, the possible workarounds are:
- don't do anything complex in your __del__ - be prepared to deal with unexpected errors in your __del__ - starting from Python 3.4, don't define __del__ and use weakref.finalize() instead: https://docs.python.org/3/library/weakref.html#weakref.finalize ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23841> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com