Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Thomas Lee
Thomas Lee wrote: > Guido van Rossum wrote: > >> - make == and != between PyBytes and PyUnicode return False instead of >> raising TypeError >> A patch for this is ready. I'll submit it to the bug tracker later tonight. >> - make == and != between PyString and Pyunicode return False instead

Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Thomas Lee
Thomas Lee wrote: > Thomas Lee wrote: > >> Guido van Rossum wrote: >> >> >>> - make == and != between PyBytes and PyUnicode return False instead of >>> raising TypeError >>> >>> > A patch for this is ready. I'll submit it to the bug tracker later tonight. > This patch is n

Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Guido van Rossum
On 10/9/07, Thomas Lee <[EMAIL PROTECTED]> wrote: > Thomas Lee wrote: > > Guido van Rossum wrote: > > > >> - make == and != between PyBytes and PyUnicode return False instead of > >> raising TypeError > >> > A patch for this is ready. I'll submit it to the bug tracker later tonight. > >> - make ==

Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Guido van Rossum
On 10/9/07, Thomas Lee <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > >>> > - make == and != between PyBytes and PyUnicode return False instead of > raising TypeError > > > Just thinking about it I'm pretty sure my initial patch is wrong - > forgive my ignorance. To remo

Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Guido van Rossum
On 10/9/07, Thomas Lee <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > > > The point is that a bytes and a str instance are never considered equal... > > > > > Sorry. I understand now. My brain must have been on a holiday earlier. > :) Just pushed an updated patch to the bug tracker. > >>

Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Guido van Rossum
On 10/9/07, Thomas Lee <[EMAIL PROTECTED]> wrote: > Looks like it: > > >>> str8('a') > b'b' > False > >>> str8('a') < b'b' > True > >>> str8('a') <= b'b' > True > >>> str8('a') >= b'b' > False Which reminds me of a task I forgot to add to the list: - change the constructor for PyString to mat

Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Guido van Rossum
On 10/9/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Which reminds me of a task I forgot to add to the list: > > - change the constructor for PyString to match the one for PyBytes. And another pair of forgotten tasks: - change PyBytes so that its str() is the same as its repr(). - change PyS

Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Alexandre Vassalotti
On 10/8/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > On 10/8/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > - change indexing and iteration over PyString to return ints, not > > 1-char PyStrings > > I will try do this one. This took a bit longer than I expected. Changing the PyString

Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Gregory P. Smith
> > > - remove buffer API from PyUnicode > > > I'll take these two with a goal of having them done by the end of the > week. > > -gps > I should've known not to believe the simple description. This one is proving difficult by itself. If I modify the Unicode object to not support the buffer API I

Re: [Python-3000] PEP 3137 plan of attack

2007-10-09 Thread Jeffrey Yasskin
On 10/10/07, Gregory P. Smith <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > - remove buffer API from PyUnicode > > > > > > I'll take these two with a goal of having them done by the end of the > week. > > > > -gps > > I should've known not to believe the simple description. This one is > prov