[Python-Dev] What to do for bytes in 2.6?

Neil Schemenauer nas at arctrix.com
Sat Jan 19 19:46:07 CET 2008


Guido van Rossum <guido at python.org> wrote:
> This may seem trivial (because we do all the work, and 2to3 just
> leaves stuff alone), but having b"" and bytes as aliases for "" and
> str in 2.6 would mean that we could write 2.6 code that correctly
> expresses the use of binary data -- and we could use u"" and unicode
> for code using text, and 2to3 would translate those to "" and str and
> the code would be correct 3.0 text processing code.

I like this solution because of its simplicity.

  Neil



More information about the Python-Dev mailing list