[Python-3000] Immutable bytes type and dbm modules

Collin Winter collinw at gmail.com
Tue Aug 7 18:22:47 CEST 2007


On 8/7/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Martin v. Löwis wrote:
> > Code that has been ported to the bytes type probably doesn't use it
> > correctly yet, but to me, the need for a buffery thing where you
> > can allocate some buffer, and then fill it byte-for-byte is quite
> > obvious.
>
> We actually already *have* something like that,
> i.e. array.array('B').

Could someone please explain to me the conceptual difference between
array.array('B'), bytes(), buffer objects and simple lists of
integers? I'm confused about when I should use which.

Collin Winter


More information about the Python-3000 mailing list