This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients Manuel Ignacio Pérez Alcolea, josh.r, martin.panter
Date 2019-11-17.23:20:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2019-11-17 23:20:53martin.pantersetrecipients: + martin.panter, josh.r, Manuel Ignacio Pérez Alcolea
2019-11-17 23:20:53martin.pantersetmessageid: <>
2019-11-17 23:20:53martin.panterlinkissue38710 messages
2019-11-17 23:20:53martin.pantercreate