[Python-3000] Consistency of memoryview and bytes object

Alexandre Vassalotti alexandre at peadrop.com
Sat Apr 26 22:51:16 CEST 2008


Hi,

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

-- Alexandre


More information about the Python-3000 mailing list