On 24.05.11 12:58, Victor Stinner wrote: > Le mardi 24 mai 2011 à 12:42 +0200, Łukasz Langa a écrit : >> Wiadomość napisana przez Walter Dörwald w dniu 2011-05-24, o godz. 12:16: >> >>>> I don't see which usecase is not covered by TextIOWrapper. But I know >>>> some cases which are not supported by StreamReader/StreamWriter. >>> >>> This could be be partially fixed by implementing generic >>> StreamReader/StreamWriter classes that reuse the incremental codecs, but >>> I don't think thats worth it. >> >> Why not? > > We have already an implementation of this idea, it is called > io.TextIOWrapper.
Exactly. From another post by Victor: > As I wrote, codecs.open() is useful in Python 2. But I don't know any > program or library using directly StreamReader or StreamWriter. So: implementing this is a lot of work, duplicates existing functionality and is mostly unused. Servus, Walter _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com