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 adamwill
Recipients adamwill
Date 2020-06-02.19:03:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591124614.71.0.196427498662.issue40847@roundup.psfhosted.org>
In-reply-to
Content
While debugging issues with the black test suite in Python 3.9, I found one which black upstream says is a Cpython issue, so I'm filing it here.

Reproduction is very easy. Just use this four-line tester:

    print("hello, world")
    \

    print("hello, world 2")

with that saved as `test.py`, check the results:

    <mock-chroot> sh-5.0# PYTHONOLDPARSER=1 python3 test.py
    hello, world
    hello, world 2
    <mock-chroot> sh-5.0# python3 test.py
      File "/builddir/build/BUILD/black-19.10b0/test.py", line 3
        
        ^
    SyntaxError: invalid syntax

The reason black has this test (well, a similar test - in black's test, the file *starts* with the backslash then the empty line, but the result is the same) is covered in https://github.com/psf/black/issues/922 and https://github.com/psf/black/pull/948 .
History
Date User Action Args
2020-06-02 19:03:34adamwillsetrecipients: + adamwill
2020-06-02 19:03:34adamwillsetmessageid: <1591124614.71.0.196427498662.issue40847@roundup.psfhosted.org>
2020-06-02 19:03:34adamwilllinkissue40847 messages
2020-06-02 19:03:34adamwillcreate