Message356298
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... |
|
| Date |
User |
Action |
Args |
| 2019-11-09 12:26:49 | Andrew Ushakov | set | recipients:
+ Andrew Ushakov |
| 2019-11-09 12:26:48 | Andrew Ushakov | set | messageid: <[email protected]> |
| 2019-11-09 12:26:48 | Andrew Ushakov | link | issue38755 messages |
| 2019-11-09 12:26:48 | Andrew Ushakov | create | |
|