Serhiy Storchaka <[email protected]> added the comment:
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.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39132>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com