Message358878
It is impossible because of using newline escaping and string literal concatenation. In the following examples
lineno != end_lineno, but strings use single quotes:
print('Hello '
'world!')
print('Hello\
world!')
Triple quotes can be also used for strings which occupy a single line of code and do not contain \n:
print("""exec("print('Hi!')")""")
We cannot also distinguish 1234 from 0x4_d2 and 1234.0 from 1.234e3 at the AST level. |
|
Date |
User |
Action |
Args |
2019-12-26 07:03:29 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, methane, pablogsal, BTaskaya |
2019-12-26 07:03:29 | serhiy.storchaka | set | messageid: <1577343809.91.0.345595108675.issue39132@roundup.psfhosted.org> |
2019-12-26 07:03:29 | serhiy.storchaka | link | issue39132 messages |
2019-12-26 07:03:29 | serhiy.storchaka | create | |
|