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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18374>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to