Message232091
This is a limitation more than a bug. When you seek to the start of the file, the encoder is reset because Python thinks you are gonna to write there. If you remove the call to `file.seek(0, io.SEEK_SET)`, things work fine.
@Amaury, whence can only be zero there:
https://hg.python.org/cpython/file/0744ceb5c0ed/Lib/_pyio.py#l1960 |
|
Date |
User |
Action |
Args |
2014-12-03 20:52:28 | pitrou | set | recipients:
+ pitrou, amaury.forgeotdarc, MarkIngramUK |
2014-12-03 20:52:28 | pitrou | set | messageid: <1417639948.46.0.787296473775.issue22982@psf.upfronthosting.co.za> |
2014-12-03 20:52:28 | pitrou | link | issue22982 messages |
2014-12-03 20:52:28 | pitrou | create | |
|