Closed
Description
b"Ā"
👉 python test.py
File "/test.py", line 1
b"Ā"
^
SyntaxError: bytes can only contain ASCII literal characters
Here the caret is pointing to blackspace after the code
So each non-ASCII character is adding more incorrect offset:
👉 $c:temp = "b'ĀĀĀĀĀĀĀĀ'"
👉 py temp
File "C:\temp", line 1
b'ĀĀĀĀĀĀĀĀ'
^
Expected
👉 python test.py
File "/test.py", line 1
b"Ā"
^
SyntaxError: bytes can only contain ASCII literal characters