[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

Martin v. Löwis report at bugs.python.org
Sat Jul 10 20:35:08 CEST 2010

Martin v. Löwis <martin at v.loewis.de> added the comment:

> I am confused by MvL’s reply. From the first paragraph documentation
> for binascii: “Normally, you will not use these functions directly
> but use wrapper modules like uu, base64, or binhex instead. The
> binascii module contains low-level functions written in C for greater
> speed that are used by the higher-level modules.”
> Is the doc not accurate?

It is correct. So use base64.b16encode/b16decode then.
It's just that I personally prefer hexlify/unhexlify, because I can
memorize the function name better.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list