Message96242
Benjamin Peterson wrote:
>
> Benjamin Peterson <benjamin@python.org> added the comment:
>
> I agree with Martin. gzip and bz2 convert bytes to bytes. Encodings deal
> strictly with unicode -> bytes.
Sorry, Bejamin, but that's simply not true.
Codecs can work with arbitrary types, it's just that the helper
methods on unicode and bytes objects only support one combination
of types in Python 3.x.
codecs.encode()/.decode() provide access to all codecs, regardless
of their supported type combinations and of course, you can use
them directly via the codec registry, subclass from them, etc. |
|
Date |
User |
Action |
Args |
2009-12-11 09:56:58 | lemburg | set | recipients:
+ lemburg, loewis, skip.montanaro, georg.brandl, benjamin.peterson, flox |
2009-12-11 09:56:57 | lemburg | link | issue7475 messages |
2009-12-11 09:56:56 | lemburg | create | |
|