Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upbpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt #17582
Conversation
… for if_stmt
This comment has been minimized.
This comment has been minimized.
Hi there |
Can you also add a |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 12, 2019
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Misc/NEWS.d/next/Core and Builtins/2019-12-12-21-05-43.bpo-39031.imlCYZ.rst
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
Thanks a lot for the review @pablogsal! I have made the requested changes; please review again. |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 12, 2019
Thanks for making the requested changes! @pablogsal: please review the changes made to this pull request. |
Thanks for the patch @lysnikolaou! I will backport this to |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 12, 2019
@lysnikolaou: Status check is done, and it's a failure |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 12, 2019
@lysnikolaou: Status check is done, and it's a success |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 12, 2019
GH-17583 is a backport of this pull request to the 3.8 branch. |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 12, 2019
Sorry, @lysnikolaou, I could not cleanly backport this to |
…t info for if_stmt (pythonGH-17582) When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node. https://bugs.python.org/issue39031 Automerge-Triggered-By: @pablogsal. (cherry picked from commit 025a602) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
…t info for if_stmt (pythonGH-17582) When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node. https://bugs.python.org/issue39031 Automerge-Triggered-By: @pablogsal. (cherry picked from commit 025a602) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 12, 2019
GH-17584 is a backport of this pull request to the 3.7 branch. |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 13, 2019
Thanks @lysnikolaou for the PR |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 13, 2019
I'm having trouble backporting to |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 13, 2019
Thanks @lysnikolaou for the PR |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 13, 2019
Sorry @lysnikolaou, I had trouble checking out the |
This comment has been minimized.
This comment has been minimized.
miss-islington
commented
Dec 13, 2019
Thanks @lysnikolaou for the PR |
This comment has been minimized.
This comment has been minimized.
bedevere-bot
commented
Dec 13, 2019
GH-17589 is a backport of this pull request to the 3.8 branch. |
… for if_stmt (pythonGH-17582) When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node. https://bugs.python.org/issue39031 Automerge-Triggered-By: @pablogsal (cherry picked from commit 025a602) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
…t info for if_stmt (GH-17582) (#17584) When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node. https://bugs.python.org/issue39031 Automerge-Triggered-By: @pablogsal. (cherry picked from commit 025a602) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
… for if_stmt (GH-17582) (GH-17589) When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node. https://bugs.python.org/issue39031 Automerge-Triggered-By: @pablogsal (cherry picked from commit 025a602) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
This comment has been minimized.
This comment has been minimized.
@pablogsal I just found out that I kind of messed this up and one more change is needed. What is the right course of action here? Open a new PR for the additional change? |
This comment has been minimized.
This comment has been minimized.
Yes, also explain in the issue what is missing |
lysnikolaou commentedDec 12, 2019
•
edited by miss-islington
When parsing an "elif" node, lineno and col_offset of the node now point to the "elif" keyword and not to its condition, making it consistent with the "if" node.
https://bugs.python.org/issue39031
Automerge-Triggered-By: @pablogsal