Message232091
| Author |
pitrou |
| Recipients |
MarkIngramUK, amaury.forgeotdarc, pitrou |
| Date |
2014年12月03日.20:52:28 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1417639948.46.0.787296473775.issue22982@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| 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 |
|