On 03/09/2019 13:31, Chris Angelico wrote:
On Tue, Sep 3, 2019 at 10:27 PM Rhodri James <rhodri@kynesim.co.uk> wrote:
On 31/08/2019 12:31, Chris Angelico wrote:
We call it a string, but a bytes object has as much in common with bytearray and with a list of integers as it does with a text string.
You say that as if text strings aren't sequences of bytes. Complicated and restricted sequences, I grant you, but no more so than a packet for a given network protocol.
A text string is a sequence of characters. By "byte", I really mean "octet", but Python prefers to say "byte".
And a character is a byte or sequence of bytes. (Odd-sized bytes are pretty much history now, so for non-pendantic usages "byte" is good enough.) -- Rhodri James *-* Kynesim Ltd