[Python-3000] Consistency of memoryview and bytes object

Guido van Rossum guido at python.org
Sun Apr 27 00:13:15 CEST 2008


Hm, yes this seems reasonable. Travis, what do you think of this?

On Sat, Apr 26, 2008 at 1:51 PM, Alexandre Vassalotti
<alexandre at peadrop.com> wrote:
>  Would it be a good idea to make memoryview indexing consistent with
>  the behaviour of bytes object?
>
>   >>> memoryview(b'hello')[0]
>   bytearray(b'h')
>   >>> b'hello'[0]
>   104

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list