[Python-Dev] Why can't I encode/decode base64 without importing a module?
tseaver at palladion.com
Wed Apr 24 19:01:10 CEST 2013
-----BEGIN PGP SIGNED MESSAGE-----
On 04/23/2013 09:29 AM, Stephen J. Turnbull wrote:
> By RFC specification, BASE64 is a *textual* representation of
> arbitrary binary data.
It isn't "text" in the sense Py3k means: it is a representation for
transmission on-the-wire for protocols which requre 7-bit-safe data.
Nobody working with base64-encoded data is going to expect to do "normal"
string processing on that data: the closest thing to that is splitting
it into 72-byte chunks for transmission via e-mail.
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the Python-Dev