Earlier quoted context omitted.
Keyme, you and I are the few that have serious concern with the design of Python 3. I started to embrace it in a big way 6 months ago when most libraries I use are available in Python. I wish to say the wait is over and we should all move to Python 3 then everything will be great. Instead I find no compelling advantage. Maybe there will be when I start to use unicode string more. Instead I'm really annoyed by the def…
>>> bytes(list(b'abc')) b'abc' >>> That is, the way to turn a list of ints into a byte string is to pass it to the bytes object. (This narrowly addresses that concern, I'd readily concede that the new API is going to have situations where it is worse)
Here is another annoyance:
In [207]: 'abc'[0] + 'def'
Out[207]: 'adef'
In [208]: b'abc'[0] + b'def'
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in ()
----> 1 b'abc'[0] + b'def'
TypeError: unsupported operand type(s) for +: 'int' and 'bytes'