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

2009-08-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thanks for the patch! Commited in r74464. -- nosy: +benjamin.peterson resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6704

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

2009-08-14 Thread Frank Wierzbicki
New submission from Frank Wierzbicki fwierzbi...@gmail.com: 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

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

2009-08-14 Thread Frank Wierzbicki
Frank Wierzbicki fwierzbi...@gmail.com 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