Message96243
| Author |
flox |
| Recipients |
benjamin.peterson, flox, georg.brandl, lemburg, loewis, skip.montanaro |
| Date |
2009年12月11日.10:22:22 |
| SpamBayes Score |
0.0025779202 |
| Marked as misclassified |
No |
| Message-id |
<1260526944.71.0.320922162987.issue7475@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Thinking about it, I am +1 to reimplement the codecs.
We could implement new methods to replace the old one.
(similar to base64.encodebytes and base64.decodebytes)
>>> b'abc'.encodebytes('base64')
b'YWJj\n'
>>> b'abc'.encodebytes('zlib').encodebytes('base64')
b'eJxLTEoGAAJNASc=\n'
>>> b'UHl0aG9u'.decodebytes('base64').decode('utf-8')
'Python' |
|