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 scummos
Recipients benjamin.peterson, georg.brandl, rhettinger, scummos, terry.reedy
Date 2010-12-25.14:43:53
SpamBayes Score 2.409184e-14
Marked as misclassified No
Message-id <1293288238.01.0.93876038413.issue10769@psf.upfronthosting.co.za>
In-reply-to
Content
Well, weather it's supposed to or not, it *does* contain the line number information:
<ExprAst lineno="1" col_offset="0">
For your example, the AST for "foo" tells you the offset for foo. If you want to know the offset (well, "offset") for blah, why not look at foo? Currently, the information is just copied from foo to blah.

Anyway, I'd like to get away from this abstract discussion which is not likely to yield a result... is there any reason not to do it like I suggested other than the philosophical "it's wrong"? Or don't you agree that the information given this way would be more useful?

Best regards,
Sven
History
Date User Action Args
2010-12-25 14:43:58scummossetrecipients: + scummos, georg.brandl, rhettinger, terry.reedy, benjamin.peterson
2010-12-25 14:43:58scummossetmessageid: <1293288238.01.0.93876038413.issue10769@psf.upfronthosting.co.za>
2010-12-25 14:43:53scummoslinkissue10769 messages
2010-12-25 14:43:53scummoscreate