Skip to content

[3.8] bpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt (GH-17582)#17589

Merged
pablogsal merged 1 commit into
python:3.8from
miss-islington:backport-025a602-3.8
Dec 13, 2019
Merged

[3.8] bpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt (GH-17582)#17589
pablogsal merged 1 commit into
python:3.8from
miss-islington:backport-025a602-3.8

Conversation

@miss-islington

@miss-islington miss-islington commented Dec 13, 2019

Copy link
Copy Markdown
Contributor

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

https://bugs.python.org/issue39031

… 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>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@lysnikolaou: Status check is done, and it's a failure ❌ .

@lysnikolaou

Copy link
Copy Markdown
Member

@pablogsal Can we merge this? I kind of need this change in 3.8 for we-like-parsers/pegen_experiments#107.

@pablogsal pablogsal merged commit 3b18b17 into python:3.8 Dec 13, 2019
@pablogsal

Copy link
Copy Markdown
Member

Done, but notice that this won't be in the official 3.8 build until the new patch version is released.

@miss-islington miss-islington deleted the backport-025a602-3.8 branch December 13, 2019 16:22
@lysnikolaou

Copy link
Copy Markdown
Member

Yeah, I know. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants