Martin Panter <vadmium...@gmail.com> added the comment:

Previously Issue 12215 and a couple of other duplicates were opened about this. 
Writing after reading with TextIOWrapper doesn't work as people expect. The 
report was closed apparently because Victor thought there wasn't enough 
interest in it.

FWIW the seek-then-write workaround will probably work for most common codecs, 
but would suffer the same problems discussed in Issue 26158 for codecs like 
UTF-7 and ISO-2022 that would need the encoder state constructed from the 
decoder state.

----------
nosy: +martin.panter
superseder:  -> TextIOWrapper: issues with interlaced read-write

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38710>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to