[Python-Dev] Draft PEP: Deprecate codecs.StreamReader and codecs.StreamWriter

Victor Stinner victor.stinner at haypocalc.com
Thu Jul 7 15:26:11 CEST 2011


Le 07/07/2011 12:53, Vinay Sajip a écrit :
> I've no issue with telling people to use open() rather than codecs.open() when
> moving code from 2.x to 3.x. But in 2.x, is there any other API which allows you
> to wrap arbitrary streams?
Yes, io.TextIOWrapper.

Victor


More information about the Python-Dev mailing list