"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Nick Coghlan wrote: | > Py3k strings are unicode, so returning a string would mean you just have | > to encode it again using the ascii codec to get the bytes to put on the | > wire. | | I still believe that producing a string is conceptually | the right thing to do. The point of base64 is to encode | binary data as text, not binary data as binary data.
On the contrary, to me, the point of base64 is to encode bytes into a subset of bytes more or less guaranteed to not get mangled during transport. That these safe bytes correspond to ascii chars (which, yes,is why they are safe) does not, to me, make the resulting quasi-random sequence 'text'. tjr _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
