[New-bugs-announce] [issue8838] Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()

STINNER Victor report at bugs.python.org
Fri May 28 01:13:37 CEST 2010

New submission from STINNER Victor <victor.stinner at haypocalc.com>:

readbuffer_encode() and charbuffer_encode() are not really encoder nor related to encodings: they are related to PyBuffer. readbuffer_encode() uses "s#" format and charbuffer_encode() uses "t#" format to parse their arguments. Both functions were introduced by the creation of the _codecs module 10 years ago (r14660).

I think that these functions should be removed. memoryview() should be used instead.

Note: charbuffer_encode() is the last function using on of the "t" format (t, t#, t*) in Python3.

components: Interpreter Core
messages: 106625
nosy: haypo
priority: normal
severity: normal
status: open
title: Remove codecs.readbuffer_encode() and codecs.charbuffer_encode()
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list