On 2014年1月13日 08:36:05 -0800
Ethan Furman wrote:
You mean crash all the time? I'd be fine with that for both the str case
and the bytes case. But's probably too late
to change the str case, and the bytes case should mirror what str does.
Let me add something else: str and bytes don't have to be symmetrical.
In Python 2, str and unicode were symmetrical, they allowed exactly the
same operations and were composable.
In Python 3, str and bytes are different beasts; they have different
operations *and* different semantics (for example, bytes interoperates
with bytearray and memoryview, while str doesn't).