[issue43933] Regression in python3.10 with traceback frame having lineno of -1

Mark Shannon report at bugs.python.org
Thu Apr 29 08:20:10 EDT 2021


Mark Shannon <mark at hotpy.org> added the comment:

I'm going to set the line number for executing the `__exit__()` function as that of the `with` keyword.

This should give a sensible traceback, and not break coverage, as the with statement is already executed.
It will impact traces and profiles, which is why the __exit__ call was not given a line number before.

Anthony, Ned,
please let me know if you disagree.

----------

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


More information about the Python-bugs-list mailing list