[3.8] bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607) by miss-islington · Pull Request #14653 · python/cpython
…-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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters