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 Andrew Ushakov
Recipients Andrew Ushakov
Date 2019-11-09.12:26:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573302408.95.0.156655994529.issue38755@roundup.psfhosted.org>
In-reply-to
Content
Not very long unicode comment #, space and then 170 or more repetitions of the utf8 symbol ░ (b'\xe2\x96\x91'.decode()) 

# ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

causes syntax error:

SyntaxError: Non-UTF-8 code starting with '\xe2' in file tst112.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Python file is attached. Second example is similar, but here unicode string with similar length is used as an argument of a print function.

print('\n░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░')

Similar Issue34979 was submitted one year ago...
History
Date User Action Args
2019-11-09 12:26:49Andrew Ushakovsetrecipients: + Andrew Ushakov
2019-11-09 12:26:48Andrew Ushakovsetmessageid: <1573302408.95.0.156655994529.issue38755@roundup.psfhosted.org>
2019-11-09 12:26:48Andrew Ushakovlinkissue38755 messages
2019-11-09 12:26:48Andrew Ushakovcreate