[New-bugs-announce] [issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s

Aivar Annamaa report at bugs.python.org
Sat Jul 6 11:35:02 CEST 2013


New submission from Aivar Annamaa:

When parsing following program:

1+2-3

ast.parse gives col_offset=3 to outermost BinOp (as shown by the attached test script). Correct col_offset would be 0 for both BinOp-s

----------
components: Interpreter Core
files: binop_bug.py
messages: 192394
nosy: Aivar.Annamaa
priority: normal
severity: normal
status: open
title: ast.parse gives wrong position (col_offset) for some BinOp-s
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file30793/binop_bug.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18374>
_______________________________________


More information about the New-bugs-announce mailing list