[New-bugs-announce] [issue6704] better col_offset for AST in statements like "for a, b in ..."

Frank Wierzbicki report at bugs.python.org
Fri Aug 14 20:55:47 CEST 2009

New submission from Frank Wierzbicki <fwierzbicki at gmail.com>:

For statements like:

for a,b in c:

The Tuple node "a,b" ends up with a col_offset of 0 (the position of the
"for"), but the col_offset should probably be 4 (the position of "a").
This is more consistent with other Tuple node col_offset results.

components: Interpreter Core
files: ast.diff
keywords: patch
messages: 91566
nosy: fwierzbicki
severity: normal
status: open
title: better col_offset for AST in statements like "for a,b in ..."
versions: Python 2.7
Added file: http://bugs.python.org/file14727/ast.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list