[Python-3000] Consistency of memoryview and bytes object

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Apr 27 05:15:44 CEST 2008


Travis Oliphant wrote:
> My feel right now is to not do the special case at all and 
> actually return a memory-view object even for element access

That could be very tedious in the case where the elements
are actually bytes, though.

Maybe there should be a separate bytesview() object to
use instead of memoryview() when you know the elements
are bytes?

-- 
Greg


More information about the Python-3000 mailing list