Anthony Sottile <asott...@umich.edu> added the comment:
fwiw, astpretty's output looks like the black output: https://github.com/asottile/astpretty >>> astpretty.pprint(ast.parse('if x == y: y += 4').body[0]) If( lineno=1, col_offset=0, test=Compare( lineno=1, col_offset=3, left=Name(lineno=1, col_offset=3, id='x', ctx=Load()), ops=[Eq()], comparators=[Name(lineno=1, col_offset=8, id='y', ctx=Load())], ), body=[ AugAssign( lineno=1, col_offset=11, target=Name(lineno=1, col_offset=11, id='y', ctx=Store()), op=Add(), value=Num(lineno=1, col_offset=16, n=4), ), ], orelse=[], ) ---------- nosy: +Anthony Sottile _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39989> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com