[Python-Dev] bytes.from_hex() [Was: PEP 332 revival in coordination with pep 349?]

"Martin v. Löwis" martin at v.loewis.de
Sat Feb 18 01:20:15 CET 2006

Ian Bicking wrote:
> Maybe it isn't worse, but the real alternative is:
>   import zlib
>   import base64
>   base64.b64encode(zlib.compress(s))
> Encodings cover up eclectic interfaces, where those interfaces fit a
> basic pattern -- data in, data out.

So should I write


or would that be


What about


It's "data in, data out", after all. Who needs functions?


More information about the Python-Dev mailing list