[Python-Dev] bytes.from_hex()
Josiah Carlson
jcarlson at uci.edu
Thu Mar 2 07:31:17 CET 2006
More information about the Python-Dev mailing list
Thu Mar 2 07:31:17 CET 2006
- Previous message: [Python-Dev] bytes.from_hex()
- Next message: [Python-Dev] bytes.from_hex()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > u = unicode(b) > u = unicode(b, 'utf8') > b = bytes['utf8'](u) > u = unicode['base64'](b) # encoding > b = bytes(u, 'base64') # decoding > u2 = unicode['piglatin'](u1) # encoding > u1 = unicode(u2, 'piglatin') # decoding Your provided semantics feel cumbersome and confusing to me, as compared with str/unicode.encode/decode() . - Josiah
- Previous message: [Python-Dev] bytes.from_hex()
- Next message: [Python-Dev] bytes.from_hex()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list