[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

Marc-Andre Lemburg report at bugs.python.org
Mon May 23 18:21:21 CEST 2011


Marc-Andre Lemburg <mal at egenix.com> added the comment:

Correcting the title: this ticket is about codecs.open(), not StreamRead and StreamWriter, both of which are essential parts of the Python codec machinery and are needed to be able to implement per-codec implementations of codecs which read from and write to streams.

TextIOWrapper() is conceptually something completely different. It's more something like StreamReaderWriter().

The point about having them use incremental codecs for encoding and decoding is a good one and would need to be investigated. If possible, we could use incremental encoders/decoders for the standard StreamReader/Writer base classes or add new IncrementalStreamReader/Writer classes which then use the IncrementalEncode/Decoder per default.

Please open a new ticket for this.

Thanks.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8796>
_______________________________________


More information about the Python-bugs-list mailing list