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-10-06.08:42:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444120942.7.0.850849402448.issue21295@psf.upfronthosting.co.za>
In-reply-to
Content
There is still problem with col_offset is some situations, for example col_offset of the ast.Attribute should be 4 but is 0 instead:

>>> for x in ast.walk(ast.parse('foo.bar')):
...     if hasattr(x, 'col_offset'):
...         print("%s: %d" % (x, x.col_offset))
... 
<_ast.Expr object at 0x7fcdc84722b0>: 0
<_ast.Attribute object at 0x7fcdc84723c8>: 0
<_ast.Name object at 0x7fcdc8472438>: 0

Is there any solution to this problem? It causes problems in python support in KDevelop (kdev-python).
History
Date User Action Args
2015-10-06 08:42:22rnovaceksetrecipients: + rnovacek, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, flox, Mark.Shannon, scummos, python-dev, Aivar.Annamaa
2015-10-06 08:42:22rnovaceksetmessageid: <1444120942.7.0.850849402448.issue21295@psf.upfronthosting.co.za>
2015-10-06 08:42:22rnovaceklinkissue21295 messages
2015-10-06 08:42:22rnovacekcreate