[Python-3000] need help fixing broken tests in py3k-pep3137 branch

Georg Brandl g.brandl at gmx.net
Sun Nov 4 18:40:33 CET 2007

Paul Moore schrieb:
> On 04/11/2007, Guido van Rossum <guido at python.org> wrote:
>> I'm beginning to settle on the following:
>> 1. concrete types: bytes (immutable) and bytearray (mutable)
> bytearray seems a bit clumsy, but I can't think of anything better...

It's much better than "buffer". Also I don't think it will be used
too often...

>> 2. their common ABC: ByteString (derives from Sequence)
> Would ByteSequence not be better?

ByteString stresses the relationship with str, with which the ByteString
derivatives share their methods.

>> 3. the ABC corresponding to buffer-API objects: MemoryBlock
> Sounds reasonable. Would it make sense to rename the buffer API as the
> memory block API in that case? (PyBufferProcs --> PyMemoryBlockProcs,
> or maybe PyMemBlockProcs to make for less typing, etc)

It certainly would make sense, during the Great C Api Rename (tm).


Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

More information about the Python-3000 mailing list