This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients benjamin.peterson, lemburg, ncoghlan, serhiy.storchaka, vstinner
Date 2013-04-25.08:18:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <5178E6B6.8050007@egenix.com>
In-reply-to <1366877669.67.0.680402596535.issue17823@psf.upfronthosting.co.za>
Content
On 25.04.2013 10:14, Nick Coghlan wrote:
> 
> Nick Coghlan added the comment:
> 
> A more consistent alternative conversion:
> 
> "...".encode("base64") => codecs.encode("...", "base64_codec")
> "...".encode("rot13") => codecs.encode("...", "rot_13")
> "...".encode("zlib") => codecs.encode("...", "zlib_codec")
> "...".encode("hex") => codecs.encode("...", "hex_codec")
> "...".encode("bz2") => codecs.encode("...", "bz2_codec")
> 
> "...".decode("base64") => codecs.decode("...", "base64_codec")
> "...".decode("rot13") => codecs.decode("...", "rot_13")
> "...".decode("zlib") => codecs.decode("...", "zlib_codec")
> "...".decode("hex") => codecs.decode("...", "hex_codec")
> "...".decode("bz2") => codecs.decode("...", "bz2_codec")

It would be better to add back the aliases we had for these codecs.
History
Date User Action Args
2013-04-25 08:18:04lemburgsetrecipients: + lemburg, ncoghlan, vstinner, benjamin.peterson, serhiy.storchaka
2013-04-25 08:18:04lemburglinkissue17823 messages
2013-04-25 08:18:03lemburgcreate