[issue45924] Incorrect traceback when future's exception is raised multiple times

Guido van Rossum report at bugs.python.org
Mon Nov 29 13:21:26 EST 2021


Guido van Rossum <guido at python.org> added the comment:

There's a similar issue with concurrent.futures.Future, and really, anything that stores exceptions and later raises them can get in trouble if there's a way to get the exception raised multiple times. This is rarely noticed because usually the exception isn't raised more than once. 

We need separate bpo issues for the other cases.

The fix is easy enough (separately store a traceback and raise using e.with_traceback(tb)) so I'm marking this as an easy issue.

----------
keywords: +easy -patch
stage: patch review -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45924>
_______________________________________


More information about the Python-bugs-list mailing list