Message371639
In this case, you can only use 'latin1', which directly map one character (\u0000-\u00FF) to/from one byte.
If use 'utf-8', it may map one character to multiple bytes, such as 'Δ' -> b'\xce\x94'
'\x94' is an invalid identifier, it will raise an error:
>>> '\xce'.isidentifier() # '\xce' is 'Î'
True
>>> '\x94'.isidentifier()
False
You may close this issue (I can't close it), we can continue the discussion. |
|
Date |
User |
Action |
Args |
2020-06-16 12:11:44 | malin | set | recipients:
+ malin, ezio.melotti, mrabarnett, matpi |
2020-06-16 12:11:44 | malin | set | messageid: <1592309504.49.0.857535425387.issue40980@roundup.psfhosted.org> |
2020-06-16 12:11:44 | malin | link | issue40980 messages |
2020-06-16 12:11:44 | malin | create | |
|