[issue15216] Support setting the encoding on a text stream after creation
Nikolaus Rath
report at bugs.python.org
Mon Jan 27 05:40:59 CET 2014
Nikolaus Rath added the comment:
Thanks Nick! Will take this into account.
I've stumbled over another question in the meantime:
It seems to me that after the call to set_encoding(), self._snapshot contains the decoder flags from the state of the *old* decoder. On the next call of eg. tell(), the flags from the old decoder are then passed to setstate() of the new decoder.
Isn't this a problem? I thought the flags could mean different things to different codecs.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15216>
_______________________________________
More information about the Python-bugs-list
mailing list