Message216777
| Author | Aivar.Annamaa |
|---|---|
| Recipients | Aivar.Annamaa |
| Date | 2014-04-18.10:49:40 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1397818180.59.0.739018200129.issue21295@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Following program gives correct result in Python versions older than 3.4, but incorrect result in 3.4:
----------------------
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)
print("col_offset of func of the call:", call.func.col_offset)
-----------------------
it should print:
col_offset of call expression: 0
col_offset of func of the call: 0
but in 3.4 it prints:
col_offset of call expression: 3
col_offset of func of the call: 0 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-04-18 10:49:40 | Aivar.Annamaa | set | recipients: + Aivar.Annamaa |
| 2014-04-18 10:49:40 | Aivar.Annamaa | set | messageid: <1397818180.59.0.739018200129.issue21295@psf.upfronthosting.co.za> |
| 2014-04-18 10:49:40 | Aivar.Annamaa | link | issue21295 messages |
| 2014-04-18 10:49:40 | Aivar.Annamaa | create | |