STINNER Victor added the comment: Yes, it's a deliberate change in the Python language. You have to copy "e" to a different variable:
err = None try: ... except Exception as exc: err = exc print(err) ---------- nosy: +haypo resolution: -> not a bug status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26237> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com