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 ezio.melotti
Recipients barry, belopolsky, benjamin.peterson, cben, eric.araujo, ezio.melotti, flox, georg.brandl, gvanrossum, jcea, lemburg, loewis, ncoghlan, pconnell, petri.lehtinen, ssbarnea, vstinner
Date 2013-04-23.12:15:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366719306.11.0.453481599629.issue7475@psf.upfronthosting.co.za>
In-reply-to
Content
-1
I see encoding as the process to go from text to bytes, and decoding the process to go from bytes to text, so (ab)using these terms for other kind of conversions is not an option IMHO.

Anyway I think someone should write a PEP and list the possible options and their pro and cons, and then a decision can be taken on python-dev.

FTR in Python 2 you can use decode for bytes->text, text->text, bytes->bytes, and even text->bytes:
u'DEADBEEF'.decode('hex')
'\xde\xad\xbe\xef'
History
Date User Action Args
2013-04-23 12:15:06ezio.melottisetrecipients: + ezio.melotti, lemburg, gvanrossum, loewis, barry, georg.brandl, jcea, cben, ncoghlan, belopolsky, vstinner, benjamin.peterson, eric.araujo, ssbarnea, flox, petri.lehtinen, pconnell
2013-04-23 12:15:06ezio.melottisetmessageid: <1366719306.11.0.453481599629.issue7475@psf.upfronthosting.co.za>
2013-04-23 12:15:06ezio.melottilinkissue7475 messages
2013-04-23 12:15:05ezio.melotticreate