Skip to content

[3.8] bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607)#14653

Merged
miss-islington merged 1 commit intopython:3.8from
miss-islington:backport-110a47c-3.8
Jul 8, 2019
Merged

[3.8] bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607)#14653
miss-islington merged 1 commit intopython:3.8from
miss-islington:backport-110a47c-3.8

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Jul 8, 2019

Nested BinOp instances (e.g. a+b+c) had a wrong col_offset for the
second BinOp (e.g. 2 instead of 0 in the example). Fix it by using the
correct st node to copy the line and col_offset from in ast.c.
(cherry picked from commit 110a47c)

Co-authored-by: Carl Friedrich Bolz-Tereick cfbolz@gmx.de

https://bugs.python.org/issue18374

…-14607)

Nested BinOp instances (e.g. a+b+c) had a wrong col_offset for the
second BinOp (e.g. 2 instead of 0 in the example). Fix it by using the
correct st node to copy the line and col_offset from in ast.c.
(cherry picked from commit 110a47c)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@cfbolz and @ilevkivskyi: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit c7be35c into python:3.8 Jul 8, 2019
@miss-islington miss-islington deleted the backport-110a47c-3.8 branch July 8, 2019 21:41
@miss-islington
Copy link
Copy Markdown
Contributor Author

@cfbolz and @ilevkivskyi: Status check is done, and it's a success ✅ .

2 similar comments
@miss-islington
Copy link
Copy Markdown
Contributor Author

@cfbolz and @ilevkivskyi: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Copy Markdown
Contributor Author

@cfbolz and @ilevkivskyi: Status check is done, and it's a success ✅ .

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