[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

Anthony Sottile report at bugs.python.org
Thu Feb 5 20:30:51 CET 2015


Anthony Sottile added the comment:

Any updates on this? I'm running into this as well (still a problem in 3.4)

```$ python3.4
Python 3.4.2 (default, Oct 11 2014, 17:59:27) 
[GCC 4.4.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> ast.parse("""'''foo\n'''""").body[0].value.col_offset
-1
```

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16806>
_______________________________________


More information about the Python-bugs-list mailing list