Message342417
reproducing case:
file.py:
```
"""
Hello \n blah.
"""
```
And then in a REPL (2.7 or 3+):
```
>>> import ast
>>> f = ast.parse(open("test.py", 'rb').read())
>>> f
<_ast.Module object at 0x7f609d0a4d68>
>>> f.body[0]
<_ast.Expr object at 0x7f609d0a4e10>
>>> f.body[0].value
<_ast.Str object at 0x7f609d02b780>
>>> f.body[0].value.s
'\nHello \n blah.\n'
>>> repr(f.body[0].value.s)
"'\\nHello \\n blah.\\n'"
```
Expected behaviour:
```
>>> repr(f.body[0].value.s)
"'\\nHello \\\\n blah.\\n'"
``` |
|
Date |
User |
Action |
Args |
2019-05-14 02:02:23 | hawkowl | set | recipients:
+ hawkowl |
2019-05-14 02:02:23 | hawkowl | set | messageid: <1557799343.57.0.564179832858.issue36911@roundup.psfhosted.org> |
2019-05-14 02:02:23 | hawkowl | link | issue36911 messages |
2019-05-14 02:02:23 | hawkowl | create | |
|