[Python-Dev] Why can't I encode/decode base64 without importing a module? (original) (raw)
Devin Jeanpierre jeanpierreda at gmail.com
Mon Apr 22 15:50:14 CEST 2013
- Previous message: [Python-Dev] Why can't I encode/decode base64 without importing a module?
- Next message: [Python-Dev] Why can't I encode/decode base64 without importing a module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Apr 22, 2013 at 7:39 AM, Calvin Spealman <ironfroggy at gmail.com> wrote:
if two lines is cumbersome, you're in for a cumbersome life a programmer.
Other encodings are either missing completely from the stdlib, or have corrupted behavior. For example, string_escape is gone, and unicode_escape doesn't make any sense anymore -- python code is text, not bytes, so why does 'abc'.encode('unicode_escape') return bytes? I don't think this change was thought through completely before it was implemented.
I agree base64 is a bad place to pick at the encode/decode changes, though. :(
-- Devin
- Previous message: [Python-Dev] Why can't I encode/decode base64 without importing a module?
- Next message: [Python-Dev] Why can't I encode/decode base64 without importing a module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]