You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
asyncio.Task.print_stack() shows an incorrect exception location #161166
File "/Users/timofeiivankov/cpython/repro.py", line 7, in fail
cleaned = True
ZeroDivisionError: division by zero
Bool assignment is not really a cause of the ZeroDivisionError
Expected:
Traceback for <Task finished name='Task-2' coro=<fail() done, defined at /Users/timofeiivankov/cpython/repro.py:3> exception=ZeroDivisionError('division by zero')> (most recent call last):
File "/Users/timofeiivankov/cpython/repro.py", line 5, in fail
1 / 0
ZeroDivisionError: division by zero
Proposed fix: use the traceback line number instead of the frame’s current line number
Activity
Merge branch 'main' into pythongh-161166-stack