[Python-3000] Bytes <-> string conversion methods

Ka-Ping Yee python-dev at zesty.ca
Sat Feb 24 20:07:54 CET 2007


Hi Guido,

I'm in your keynote and looking at a slide right now that says

    * bytes has .encode() method returning a string
    * str has a .decode() method returning bytes

Should the names of those two methods be swapped?  I think it
makes more sense to say that an encoding is something that
transforms a string into a sequence of bytes.


-- ?!ng


More information about the Python-3000 mailing list