This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author meador.inge
Recipients benjamin.peterson, bronikkk, meador.inge
Date 2012-01-13.04:00:26
SpamBayes Score 0.035068728
Marked as misclassified No
Message-id <1326427227.65.0.853433015725.issue13746@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce this in tip as well:

>>> ast.dump(ast.parse('a = (1,2)'), include_attributes=True)
"Module(body=[Assign(targets=[Name(id='a', ctx=Store(), lineno=1, col_offset=0)], value=Tuple(elts=[Num(n=1, lineno=1, col_offset=5), Num(n=2, lineno=1, col_offset=7)], ctx=Load(), lineno=1, col_offset=5), lineno=1, col_offset=0)])"
>>> ast.dump(ast.parse('a = (1 + 2)'), include_attributes=True)
"Module(body=[Assign(targets=[Name(id='a', ctx=Store(), lineno=1, col_offset=0)], value=BinOp(left=Num(n=1, lineno=1, col_offset=5), op=Add(), right=Num(n=2, lineno=1, col_offset=9), lineno=1, col_offset=5), lineno=1, col_offset=0)])"

The actual column number is lost when calling into 'ast_for_testlist'
from the 'LPAR' case of 'ast_for_atom'.
History
Date User Action Args
2012-01-13 04:00:27meador.ingesetrecipients: + meador.inge, benjamin.peterson, bronikkk
2012-01-13 04:00:27meador.ingesetmessageid: <1326427227.65.0.853433015725.issue13746@psf.upfronthosting.co.za>
2012-01-13 04:00:26meador.ingelinkissue13746 messages
2012-01-13 04:00:26meador.ingecreate