Thanks Philip, I didn't thought of that. :)
Looks like my guessing was correct, here's the output with CPython for the same script:
('Module',
('body',
('Assign (1,0)',
('targets', ('Name (1,0)', ('id', 'a'), ('ctx', ('Store',)))),
('value', ('Num (1,4)', ('n', 1)))),
('Assign (2,0)',
('targets', ('Name (2,0)', ('id', 'b'), ('ctx', ('Store',)))),
('value', ('Num (2,4)', ('n', 2)))),
('Expr (3,0)',
('value',
('BinOp (3,1)',
('left', ('Name (3,1)', ('id', 'a'), ('ctx', ('Load',)))),
('op', ('Add',)),
('right', ('Name (3,5)', ('id', 'b'), ('ctx', ('Load',))))))),
('Assign (4,0)',
('targets',
('Attribute (4,1)',
('value',
('BinOp (4,1)',
('left', ('Name (4,1)', ('id', 'a'), ('ctx', ('Load',)))),
('op', ('Add',)),
('right', ('Name (4,5)', ('id', 'b'), ('ctx', ('Load',)))))),
('attr', 'c'),
('ctx', ('Store',)))),
('value', ('Num (4,12)', ('n', 3)))))) |