消息 [356298]
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... |
|
| 日期 |
用户 |
动作 |
参数 |
| 2019-11-09 12:26:49 | Andrew Ushakov | 修改 | recipients:
+ Andrew Ushakov |
| 2019-11-09 12:26:48 | Andrew Ushakov | 修改 | messageid: <1573302408.95.0.156655994529.issue38755@roundup.psfhosted.org> |
| 2019-11-09 12:26:48 | Andrew Ushakov | 链接 | issue38755 messages |
| 2019-11-09 12:26:48 | Andrew Ushakov | 创建 | |
|