[Python-Dev] Re: adding a bytes sequence type to Python (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Wed Aug 18 19:28:04 CEST 2004


M.-A. Lemburg wrote:

You need to think about the important use-case of having to convert Py2 applications to Py3 style. In many cases, the application can be made to run under Py3 be adding the small 'b' in front of the used string literals.

That is hard to tell, because Py3 is not implemented, yet. It might be that in many cases, no change is necessary at all, because the system default encoding will convert the strings to bytes.

Since the code is already in place and the change is minimal, I don't see any reason not to use it.

I do. It would mean that we commit to the b"" notation, when there is no real need for that.

Regards, Martin



More information about the Python-Dev mailing list