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

Georg Brandl g.brandl at gmx.net
Sat Oct 20 00:36:06 CEST 2007


Christian Heimes schrieb:
> 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.

I do that, currently, patch should be up in a minute.

Georg

-- 
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