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
artemmukhin
changed the title
inspect.getsourcelines returns 0 as the starting line number for modulesinspect.{getsourcelines, findsource} return 0 as the starting line number for modules
Apr 6, 2023
Bug report
Run the following program
Expected Result
The line numbers are expected to be 1-based, so the expected output is
1 1
.Actual Result
The actual output is
0 0
.Related discussion: #103226
Your environment
main
branchLinked PRs
inspect.getsourcelines()
to return 1-based line numbers #103226The text was updated successfully, but these errors were encountered: