[issue33066] raise an exception from multiple positions break the traceback frames

2021-01-12 Thread Irit Katriel
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

[issue33066] raise an exception from multiple positions break the traceback frames

2020-12-07 Thread Irit Katriel
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 _

[issue33066] raise an exception from multiple positions break the traceback frames

2018-03-13 Thread hubo
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