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

2007-11-04 Thread Brett Cannon
On 11/3/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > On 11/2/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > In the py3k-pep3137 branch I've been working on the implementation of PEP > > 3137. > > The work is largely done, but I'm stuck with about 20 failing tests, > > and very little time th

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

2007-11-04 Thread Christian Heimes
Guido van Rossum wrote: > He's absolutely right. > > I never realized that your test was meant to fail until the behavior > was fixed -- then I would've just disabled it. :-) I've disabled the test for you. :) >> Guido, what's the output of the locale command on your box? > > LANG=en_US My loc

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

2007-11-04 Thread Aahz
On Sat, Nov 03, 2007, Brett Cannon wrote: > On 11/3/07, Christian Heimes <[EMAIL PROTECTED]> wrote: >> >> No, Python has no means to check for the buffer interface yet. You could >> do isinstance(ob, (bytes, buffer)) but it wouldn't catch every object. >> We could create a PyObject_CheckWriteBuffer

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

2007-11-04 Thread Christian Heimes
Guido van Rossum wrote: > In the py3k-pep3137 branch I've been working on the implementation of PEP > 3137. > The work is largely done, but I'm stuck with about 20 failing tests, > and very little time this weekend to work on these. Here's the list: Windows test results: test_bytes test_csv test

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

2007-11-04 Thread Guido van Rossum
I'm beginning to settle on the following: 1. concrete types: bytes (immutable) and bytearray (mutable) 2. their common ABC: ByteString (derives from Sequence) 3. the ABC corresponding to buffer-API objects: MemoryBlock --Guido On 11/3/07, Jeffrey Yasskin <[EMAIL PROTECTED]> wrote: > Those look c

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

2007-11-04 Thread Paul Moore
On 04/11/2007, Guido van Rossum <[EMAIL PROTECTED]> 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... > 2. their common ABC: ByteString (derives from Sequence)

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

2007-11-04 Thread Georg Brandl
Paul Moore schrieb: > On 04/11/2007, Guido van Rossum <[EMAIL PROTECTED]> 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"

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

2007-11-04 Thread Brett Cannon
On 11/4/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I'm beginning to settle on the following: > > 1. concrete types: bytes (immutable) and bytearray (mutable) > 2. their common ABC: ByteString (derives from Sequence) > 3. the ABC corresponding to buffer-API objects: MemoryBlock > All seem fi

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

2007-11-04 Thread Christian Heimes
Guido van Rossum wrote: > I'm beginning to settle on the following: > > 1. concrete types: bytes (immutable) and bytearray (mutable) > 2. their common ABC: ByteString (derives from Sequence) I prefer ByteSequence. Bytes and buffer are a sequence of bytes. > 3. the ABC corresponding to buffer-API

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

2007-11-04 Thread Guido van Rossum
On 11/4/07, Christian Heimes <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > I'm beginning to settle on the following: > > > > 1. concrete types: bytes (immutable) and bytearray (mutable) > > 2. their common ABC: ByteString (derives from Sequence) > > I prefer ByteSequence. Bytes and buffe