[issue15216] Support setting the encoding on a text stream after creation

Serhiy Storchaka report at bugs.python.org
Sun Feb 2 14:33:14 CET 2014


Serhiy Storchaka added the comment:

What about other TextIOWrapper parameters? I think "newline" should be changed in same cases as "encoding" and "errors". And changing "buffering" and "line_buffering" can be useful too.

What if add the "configure" or "reopen" method which accepts all this parameters? This will decrease the swelling of interface.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15216>
_______________________________________


More information about the Python-bugs-list mailing list