Issue 6704: better col_offset for AST in statements like "for a,b in ..." (original ) (raw ) Issue6704
Created on 2009-08-14 18:55 by fwierzbicki , last changed 2022-04-11 14:56 by admin . This issue is now closed .
Files
File name
Uploaded
Description
Edit
ast.diff
fwierzbicki,2009-08-14 18:55
patch for ast.c
ast.diff
fwierzbicki,2009-08-14 20:00
Try #2 added test data to test_ast.py
Messages (3)
msg91566 - (view)
Author: Frank Wierzbicki (fwierzbicki) *
Date: 2009-08-14 18:55
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.
msg91568 - (view)
Author: Frank Wierzbicki (fwierzbicki) *
Date: 2009-08-14 20:00
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
msg91624 - (view)
Author: Benjamin Peterson (benjamin.peterson) *
Date: 2009-08-15 22:59
Thanks for the patch! Commited in r74464 .
History
Date
User
Action
Args
2022-04-11 14:56:51
admin
set
github: 50953
2009-08-15 22:59:48
benjamin.peterson
set
status: open -> closednosy: + benjamin.peterson messages: + resolution: accepted
2009-08-14 20:00:31
fwierzbicki
set
files: + ast.diff messages: +
2009-08-14 18:55:46
fwierzbicki
create