[issue15216] Support setting the encoding on a text stream after creation
Antoine Pitrou
report at bugs.python.org
Sat Jun 30 14:39:25 CEST 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
> 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.
That will be fragile. A bit of prematurate input or output (for whatever reason) and your program breaks.
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15216>
_______________________________________
More information about the Python-bugs-list
mailing list