[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

bpo-39031: Include elif keyword when producing lineno/col-offset info for if_stmt by lysnikolaou · Pull Request #17582 · python/cpython

the-knights-who-say-ni

… for if_stmt

Closed

Co-Authored-By: Pablo Galindo <Pablogsal@gmail.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Dec 13, 2019
… 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>

pablogsal added a commit that referenced this pull request

Dec 13, 2019
…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>

pablogsal pushed a commit that referenced this pull request

Dec 13, 2019
… 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 was referenced

Dec 14, 2019

Merged

Merged

Merged

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request

Jan 31, 2020