-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issues with locating/parsing source during DebugInfo emission. #7744
Conversation
This works around issues with source that cannot be parsed when looking for a line containing `def` so as to get the correct line info for use in DebugInfo emission. It adds tests for this and also the case where the function source is simply unobtainable. Fixes numba#7730
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two suggestions for slightly improved testing. Looks good otherwise.
Nevermind. The initial strings are already the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Conflicts: numba/tests/test_debuginfo.py
776f5df fixes conflicts against mainline. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-approved.
Fix issues with locating/parsing source during DebugInfo emission.
Fix issues with locating/parsing source during DebugInfo emission.
This works around issues with source that cannot be parsed when
looking for a line containing
def
so as to get the correct lineinfo for use in DebugInfo emission. It adds tests for this and
also the case where the function source is simply unobtainable.
Fixes #7730