[Python-Dev] Why can't I encode/decode base64 without importing a module?
ram at rachum.com
Mon Apr 22 13:29:23 CEST 2013
Take a look at this question:
Is there really no way to use base64 that's as short as:
Because doing this:
encoded = base64.b64encode(b'whatever')
Why can't I do something like b'whatever'.encode('base64')? Or maybe using
a different method than `encode`?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev