Message364824
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=[],
) |
|
Date |
User |
Action |
Args |
2020-03-22 21:07:55 | Anthony Sottile | set | recipients:
+ Anthony Sottile, rhettinger, terry.reedy, mark.dickinson, eric.smith, benjamin.peterson, serhiy.storchaka, pablogsal |
2020-03-22 21:07:55 | Anthony Sottile | set | messageid: <1584911275.81.0.765604457618.issue39989@roundup.psfhosted.org> |
2020-03-22 21:07:55 | Anthony Sottile | link | issue39989 messages |
2020-03-22 21:07:55 | Anthony Sottile | create | |
|