[Python-Dev] Re: adding a bytes sequence type to Python

"Martin v. Löwis" martin at v.loewis.de
Wed Aug 18 21:06:09 CEST 2004


M.-A. Lemburg wrote:
> Indeed... and the same is true for almost all other methods
> (except maybe .replace()).
> 
> Sounds like a lot of code will break.

We will see. The default string type will be Unicode, so code
using .lower will continue to work in many cases.

The question is what open(path,"r").read() will return. It seems
that Guido wants users to specify "rb" if they want that to be
byte strings.

Regards,
Martin


More information about the Python-Dev mailing list