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 Mark.Shannon
Recipients Aivar.Annamaa, Mark.Shannon, benjamin.peterson, brett.cannon, flox, georg.brandl, ncoghlan, python-dev, scummos
Date 2015-03-09.16:44:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425919479.99.0.768840074874.issue21295@psf.upfronthosting.co.za>
In-reply-to
Content
How do I get the start of `(x+y).bit_length()` in 
`total += (x+y).bit_length()`?
With your change, I can't get it from `x`, `x+y`, or from the whole statement.

The primary purpose of the locations are for tracebacks, not for static tools.
Also, most tools need to support earlier versions of Python and consistency between versions is the most important thing.

A third-party parser that supported full, accurate locations would be great, but I don't think the builtin parser is the place for it.
History
Date User Action Args
2015-03-09 16:44:40Mark.Shannonsetrecipients: + Mark.Shannon, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, flox, scummos, python-dev, Aivar.Annamaa
2015-03-09 16:44:39Mark.Shannonsetmessageid: <1425919479.99.0.768840074874.issue21295@psf.upfronthosting.co.za>
2015-03-09 16:44:39Mark.Shannonlinkissue21295 messages
2015-03-09 16:44:39Mark.Shannoncreate