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

Nick Coghlan report at bugs.python.org
Wed Nov 6 13:03:11 CET 2013


Nick Coghlan added the comment:

Thanks, Andrei, that would be great.

The tests and the Python version in Victor's patch show the desired API and behaviour.

In theory, the C version should just be a matter of adding an equivalent textiowrapper_set_encoding method as a static function in 
hg.python.org/cpython/file/default/Modules/_io/textio.c

----------

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


More information about the Python-bugs-list mailing list