Author ammar2
Recipients Artificial, ammar2
Date 2019-10-03.01:42:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570066951.44.0.251089054198.issue38357@roundup.psfhosted.org>
In-reply-to
Content
If you're trying to get raw bytes, you need to use

    print(b'\x80')

what's happening right now is that the '\x80' is treated as a unicode code point (see https://docs.python.org/3/howto/unicode.html#the-string-type), and when Python goes to print it, it gets encoded to the raw underlying bytes. Which, in the default encoding of utf-8 requires the extra byte.

>>> '\x80'.encode()
b'\xc2\x80'
History
Date User Action Args
2019-10-03 01:42:31ammar2setrecipients: + ammar2, Artificial
2019-10-03 01:42:31ammar2setmessageid: <1570066951.44.0.251089054198.issue38357@roundup.psfhosted.org>
2019-10-03 01:42:31ammar2linkissue38357 messages
2019-10-03 01:42:31ammar2create