Author Anthony Sottile
Recipients Anthony Sottile, benjamin.peterson, eric.smith, mark.dickinson, pablogsal, rhettinger, serhiy.storchaka, terry.reedy
Date 2020-03-22.21:07:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584911275.81.0.765604457618.issue39989@roundup.psfhosted.org>
In-reply-to
Content
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=[],
)
History
Date User Action Args
2020-03-22 21:07:55Anthony Sottilesetrecipients: + Anthony Sottile, rhettinger, terry.reedy, mark.dickinson, eric.smith, benjamin.peterson, serhiy.storchaka, pablogsal
2020-03-22 21:07:55Anthony Sottilesetmessageid: <1584911275.81.0.765604457618.issue39989@roundup.psfhosted.org>
2020-03-22 21:07:55Anthony Sottilelinkissue39989 messages
2020-03-22 21:07:55Anthony Sottilecreate