[Python-3000] Immutable bytes -- looking for volunteer

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Sep 18 23:24:24 CEST 2007


Talin wrote:
> Data Type   AbstractSequence  Immutable   Mutable
> =========   ================  =========   =======
> byte        ByteSequence      bytes       buffer
> character   CharSequence      str         strbuf
> 
> 'buffer' could be an array.array, although if it's used frequently 
> enough an optimized special-case 'buffer' class might be better.

I'd prefer to keep the term 'buffer' for an object that
exposes the buffer interface of another object.

I suggest calling it a 'bytearray' if you want a specialised
type for it.

--
Greg


More information about the Python-3000 mailing list