On 08/17/2014 02:19 PM, Raymond Hettinger wrote:
On Aug 17, 2014, at 11:33 AM, Ethan Furman wrote:

I've had many of the problems Nick states and I'm also +1.

There are two code snippets below which were taken from the standard library.

[...]

My issues are with 'bytes', not 'bytearray'. 'bytearray(10)' actually makes sense. I certainly have no problem with bytearray and bytes not being exactly the same.

My primary issues with bytes is not being able to do b'abc'[2] == b'c', and with not being able to do x = b'abc'[2]; y = bytes(x); assert y == b'c'.

And because of the backwards compatibility issues I would deprecate, because we have a new 'better' way, but not remove, the current functionality.

I pretty much agree exactly with what Donald Stufft said about it.

--
~Ethan~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to