Matias G <guija...@esrf.fr> added the comment:
About the reference in exception: I thought that Python 3 didn't have the need for `sys.exc_clear()` (which has been removed), specifically for this kind of problem. The code I use is in fact more complex than the small snippet I posted here to reproduce the (presumed) bug ; what I see, is that the reference is **never** removed. The weakref cannot die. My program is a REPL, I want exceptions to bubble up to users, so catching it before it reaches the user layer is not so great. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45555> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com