Message 164256 - Python tracker
> The proposal [1] is that TextIOWrapper support a set_encoding() method that is only supported between creation of the stream and the first read or write operation. IMHO "encoding", "errors", "buffering", "line_buffering" and "newline" should be writable properties (unless first read/write).