Irit Katriel added the comment:
See this documentation of with_traceback() regarding an API to set the
traceback on an exception object.
https://docs.python.org/3/library/exceptions.html#BaseException.with_traceback
--
resolution: -> not a bug
stage: -> resolved
status: open -> clo
Irit Katriel added the comment:
When an exception has a __traceback__ and you raise it, the current frame is
added to that traceback. What do you expect the behavior to be when you raise
the same exception instance twice, from two different locations?
--
nosy: +iritkatriel
_
New submission from hubo :
The attachment is a script that demonstrates the behavior. The simple unittest
script should exit very quickly, but in fact, it runs indefinitely.
It uses asyncio to reproduce the result, but other concurrent technologies are
also affected.
In Python 3, traceback of