[issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()
STINNER Victor
report at bugs.python.org
Fri May 28 15:33:43 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> readbuffer_encode() and charbuffer_encode() are not really encoder
> nor related to encodings: they are related to PyBuffer
That was the initial problem: codecs is specific to encodings (in Python3), encodes str to bytes, and decodes bytes (or any read buffer) to str.
I don't like readbuffer_*encode* and *charbuffer_encode* function names, because there are different than other codecs: they encode *bytes* to bytes (and not str to bytes). I think that these functions should be removed or moved somewhere else under a different name.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8838>
_______________________________________
More information about the Python-bugs-list
mailing list