This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients skrah
Date 2015-07-12.19:41:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436730078.84.0.940151456611.issue24623@psf.upfronthosting.co.za>
In-reply-to
Content
IMO the string should start at lineno=1, col_offset=0.


$ ./python 
Python 3.6.0a0 (default:02b81a82a57d, Jul 12 2015, 20:33:44) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> a = ast.parse('''"""xxx
... yyy
... zzz"""''')
>>> ast.dump(a, include_attributes=True)
"Module(body=[Expr(value=Str(s='xxx\\nyyy\\nzzz', lineno=3, col_offset=-1), lineno=3, col_offset=-1)])"
History
Date User Action Args
2015-07-12 19:41:18skrahsetrecipients: + skrah
2015-07-12 19:41:18skrahsetmessageid: <1436730078.84.0.940151456611.issue24623@psf.upfronthosting.co.za>
2015-07-12 19:41:18skrahlinkissue24623 messages
2015-07-12 19:41:18skrahcreate