[issue6704] better col_offset for AST in statements like "for a, b in ..."

2009-08-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch! Commited in r74464. -- nosy: +benjamin.peterson resolution: -> accepted status: open -> closed ___ Python tracker ___

[issue6704] better col_offset for AST in statements like "for a, b in ..."

2009-08-14 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: Adding tests to test_ast.py for the three cases that exercise the "for a,b" scenario. Also fixed a small bug in the test code generator in test_ast.py -- Added file: http://bugs.python.org/file14728/ast.diff ___ P

[issue6704] better col_offset for AST in statements like "for a, b in ..."

2009-08-14 Thread Frank Wierzbicki
New submission from Frank Wierzbicki : For statements like: for a,b in c: pass 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. --