3 ms·
Python 3 didn't get rid of bytes though. If you want to manipulate data as bytes you absolutely can do that. https://docs.python.org/3/library/stdtypes.html#bi
by seanhunter 1y ago
Python 3 didn't get rid of bytes though. If you want to manipulate data as bytes you absolutely can do that.
https://docs.python.org/3/library/stdtypes.html#binary-sequence-types-bytes-bytearray-memoryview https://docs.python.org/3/library/stdtypes.html#binary-seque...
"The core built-in types for manipulating binary data are bytes and bytearray."
- o11c 1y agoThose are arrays of integers, not of bytes. Most bytes are character-ish, which only python2's bytes acknowledged. Additionally, python2 supported a much richer set of operations on its bytes type than python3 does.