[Python-3000] PEP 3137: Immutable Bytes and Mutable Buffer

Talin talin at acm.org
Thu Sep 27 10:20:14 CEST 2007


Guido van Rossum wrote:
> Thinking through the consequences, and noticing that using the array
> module as an ersatz mutable bytes type is far from ideal, and
> recalling a proposal put forward earlier by Talin, I floated the
> suggestion to have both a mutable and an immutable bytes type.  (This
> had been brought up before, but until seeing the evidence of Jeffrey's
> patch I wasn't open to the suggestion.)

One thing that you may have missed from my proposal is that both 'bytes' 
and 'buffer' inherit from a common ABC. This ABC defines all of the 
operations which 'bytes' and 'buffer' have in common. My name for this 
ABC was 'ByteSequence', but I have no particular attachment to that name.

-- Talin



More information about the Python-3000 mailing list