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 malin
Recipients ezio.melotti, malin, matpi, mrabarnett
Date 2020-06-16.12:11:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592309504.49.0.857535425387.issue40980@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-06-16 12:11:44malinsetrecipients: + malin, ezio.melotti, mrabarnett, matpi
2020-06-16 12:11:44malinsetmessageid: <1592309504.49.0.857535425387.issue40980@roundup.psfhosted.org>
2020-06-16 12:11:44malinlinkissue40980 messages
2020-06-16 12:11:44malincreate