Message246665
| 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:18 | skrah | set | recipients:
+ skrah |
| 2015年07月12日 19:41:18 | skrah | set | messageid: <1436730078.84.0.940151456611.issue24623@psf.upfronthosting.co.za> |
| 2015年07月12日 19:41:18 | skrah | link | issue24623 messages |
| 2015年07月12日 19:41:18 | skrah | create |
|