3 ms·
> Python 2 has ASCII str() types, separate unicode(), but no byte type. This is incorrect in at least two ways: - Python 2.7.x str is _not_ ASCII! "\xff" is t
by lvh 10y ago
> Python 2 has ASCII str() types, separate unicode(), but no byte type.
This is incorrect in at least two ways:
- Python 2.7.x str is _not_ ASCII! "\xff" is totally valid, but not a valid ASCII string.
- Python 2.7.x has bytearray.