Message252384
| Author | rnovacek |
|---|---|
| Recipients | Aivar.Annamaa, Mark.Shannon, benjamin.peterson, brett.cannon, flox, georg.brandl, ncoghlan, python-dev, rnovacek, scummos |
| Date | 2015-10-06.10:37:16 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1444127836.49.0.0872176787389.issue21295@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Aivar, I have to admit that my knowledge of this is limited, but as I understand it, the attribute is "bar" in the "foo.bar" expression.
I can get beginning of the assignment by
>>> ast.parse('foo.bar').body[0].value.value.col_offset
0
But how can I get position of the 'bar'? My guess is this:
>>> ast.parse('foo.bar').body[0].value.col_offset
but it still returns 0.
Why this two col_offsets returns the same value? How can I get the position of 'bar' in 'foo.bar'? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015-10-06 10:37:16 | rnovacek | set | recipients: + rnovacek, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, flox, Mark.Shannon, scummos, python-dev, Aivar.Annamaa |
| 2015-10-06 10:37:16 | rnovacek | set | messageid: <1444127836.49.0.0872176787389.issue21295@psf.upfronthosting.co.za> |
| 2015-10-06 10:37:16 | rnovacek | link | issue21295 messages |
| 2015-10-06 10:37:16 | rnovacek | create | |