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 serhiy.storchaka
Recipients BTaskaya, methane, pablogsal, serhiy.storchaka
Date 2019-12-26.07:03:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577343809.91.0.345595108675.issue39132@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-12-26 07:03:29serhiy.storchakasetrecipients: + serhiy.storchaka, methane, pablogsal, BTaskaya
2019-12-26 07:03:29serhiy.storchakasetmessageid: <1577343809.91.0.345595108675.issue39132@roundup.psfhosted.org>
2019-12-26 07:03:29serhiy.storchakalinkissue39132 messages
2019-12-26 07:03:29serhiy.storchakacreate