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