-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-103225: Fixed zero lineno issue for pdb #103265
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
Conversation
Sure! Thank you for extracting the workaround and the test for Regarding adding co-authors, this article might be helpful. But that is fine anyway 🙂 |
Co-authored-by: Artem Mukhin <[email protected]>
73afc79
to
0b3c3b8
Compare
Thanks! That's helpful! |
@iritkatriel could you take a look at this fix which originally was done in |
Misc/NEWS.d/next/Library/2023-04-05-01-28-53.gh-issue-103225.QD3JVU.rst
Outdated
Show resolved
Hide resolved
I've added the "co-authored by" line to the first comment. |
I redid the commit with co-authored-by so @ortem is showing as the co-author in the commit now. |
…D3JVU.rst Co-authored-by: Irit Katriel <[email protected]>
I’m not sure that would work, because we squash the commits when merging and typically remove the individual commit messages. It does get picked up from the description of the PR though. |
Hmm, interesting to know that. Next time I'll do it in the PR. |
Actually I think more accurately - GitHub probably picks up the coauthor from the commit message, but the person who merges typically deletes all the individual commit messages, and is more likely to notice the "co-authored by" in the main message and not erase it. |
Co-authored-by: Artem Mukhin <[email protected]>
@iritkatriel should we port this back to 3.11? |
We could, if this bug is there as well. Could you check to make sure, and then make a PR for 3.11? |
Co-authored-by: Artem Mukhin <[email protected]>
GH-104262 is a backport of this pull request to the 3.11 branch. |
Confirmed that 3.11 has this issue as well, PR was made. |
According to #103225,
inspect.getsourcelines()
returns wrong line number. Fixing it itinspect
will take extra discussion so we fixed it inpdb
for now. If in the future this got fixed ininspect
we can take the fix away.Co-authored-by: Artem Mukhin [email protected]