[issue36259] exception text is being sourced from the wrong file

Jesse Farnham report at bugs.python.org
Sun Apr 7 15:04:59 EDT 2019


Jesse Farnham <jessefarnham1 at gmail.com> added the comment:

Upon further digging, the filename to search for ultimately comes from the PyCodeObject where the error occurred. So a possible solution could be to populate the PyCodeObject with the absolute path to the file when it’s first created in compilation. Then no searching is needed and the problem doesn’t happen. This seems like a potentially very invasive change, though.

----------

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


More information about the Python-bugs-list mailing list