Message187631
| 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:06 | ezio.melotti | set | recipients:
+ 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:06 | ezio.melotti | set | messageid: <1366719306.11.0.453481599629.issue7475@psf.upfronthosting.co.za> |
| 2013年04月23日 12:15:06 | ezio.melotti | link | issue7475 messages |
| 2013年04月23日 12:15:05 | ezio.melotti | create |
|