[Python-3000] PEP 3137 plan of attack {stage 2]

Guido van Rossum guido at python.org
Fri Oct 19 23:57:06 CEST 2007


On 10/19/07, Christian Heimes <lists at cheimes.de> wrote:
> Guido van Rossum wrote:
> >> - change PyString's repr() to return "b'...'"
> >> - change PyBytes's repr() to return "buffer(b'...')"
> >> - change parser so that b"..." returns PyString, not PyBytes
> >> - rename bytes -> buffer, str8 -> bytes
> >
> > A patch by Alexandre Vassolotti and Christian Heimes exists for these 4 items:
> > http://bugs.python.org/issue1247
> > However it breaks too many tests to be applied right now.
>
> Yes, it's breaking horrible. It doesn't make sense to work on the fixes
> until "change the constructor for PyString to match the one for PyBytes"
> is done. PyString needs to accept an optional encoding and error argument.

Of course. I didn't mean to imply there was a problem with the patch, sorry.

> >> - add an iteration view over PyBytes (optional)
> >
> > Not yet done (Christian Heimes offered).
>
> I only pointed out that it's missing. I didn't say that I would write it
> because I don't feel qualified and experienced enough for it.

Oops, sorry again.

> > A patch by Christian Heimes exists: http://bugs.python.org/issue1267
> > However it still breaks some unit tests...
>
> Which unit tests are broken for you? test_cProfile test_doctest
> test_email test_profile are broken for me in a vanilla build of py3k. My
> patch doesn't break additional tests for me.

I'll look into it. Maybe I misremember.

> By the way I may have figured out how to fix the profile tests.

Cooll submit to the tracker and assign to me any time.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list