homepage

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 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:28pitrousetrecipients: + pitrou, amaury.forgeotdarc, MarkIngramUK
2014年12月03日 20:52:28pitrousetmessageid: <1417639948.46.0.787296473775.issue22982@psf.upfronthosting.co.za>
2014年12月03日 20:52:28pitroulinkissue22982 messages
2014年12月03日 20:52:28pitroucreate

AltStyle によって変換されたページ (->オリジナル) /