[issue21992] New AST node Else() should be introduced

2014-07-16 Thread Igor Bronshteyn
New submission from Igor Bronshteyn: Quoting Collin Winter: "I'd like there to be an Else() node for If.orelse, While.orelse, etc. My motivation is that I need the lineno and col_offset values of the "else" statement for a code-coverage utility; as it is, I have to find the

[issue13746] ast.Tuple's have an inconsistent "col_offset" value

2012-01-09 Thread Igor Bronshteyn
Igor Bronshteyn added the comment: I mean, that AST generated with standard "ast.parse" has nodes with confusing positions. Sorry for the first indistinct message. -- ___ Python tracker <http://bugs.python.o

[issue13746] ast.Tuple's have an inconsistent "col_offset" value

2012-01-09 Thread Igor Bronshteyn
New submission from Igor Bronshteyn : Consider the following snippet (the file is attached): code starts a = [1, 3.14, 'abc', u'XYZ'] b = (1, 3.14, 'abc', u'XYZ') c = {1 : 3.14, 'abc' : u'XYZ'} = code ends = The lis