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 rnovacek
Recipients Aivar.Annamaa, Mark.Shannon, benjamin.peterson, brett.cannon, flox, georg.brandl, ncoghlan, python-dev, rnovacek, scummos
Date 2015-09-24.13:35:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1443101733.1.0.239815446079.issue21295@psf.upfronthosting.co.za>
In-reply-to
Content
I've ran the tests from first and second comment using python 3.5.0 and it seems it produces correct results:

>>> import ast
>>> tree = ast.parse("sin(0.5)")
>>> first_stmt = tree.body[0]
>>> call = first_stmt.value
>>> print("col_offset of call expression:", call.col_offset)
col_offset of call expression: 0
>>> print("col_offset of func of the call:", call.func.col_offset)
col_offset of func of the call: 0

>>> tree = ast.parse("(sin\n(0.5))")
>>> first_stmt = tree.body[0]
>>> call = first_stmt.value
>>> print("col_offset of call expression:", call.col_offset)
col_offset of call expression: 1
>>> print("col_offset of func of the call:", call.func.col_offset)
col_offset of func of the call: 1
>>> print("lineno of call expression:", call.lineno)
lineno of call expression: 1
>>> print("lineno of func of the call:", call.lineno)
lineno of func of the call: 1
History
Date User Action Args
2015-09-24 13:35:33rnovaceksetrecipients: + rnovacek, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, flox, Mark.Shannon, scummos, python-dev, Aivar.Annamaa
2015-09-24 13:35:33rnovaceksetmessageid: <1443101733.1.0.239815446079.issue21295@psf.upfronthosting.co.za>
2015-09-24 13:35:33rnovaceklinkissue21295 messages
2015-09-24 13:35:32rnovacekcreate