Message83834
| Author |
vstinner |
| Recipients |
pitrou, vstinner |
| Date |
2009年03月20日.00:37:43 |
| SpamBayes Score |
4.0542504e-06 |
| Marked as misclassified |
No |
| Message-id |
<1237509468.05.0.578962629673.issue5006@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
@pitrou: You're right, but the state have to be changed for the
encoder, not the decoder. I added the following code to TextIOWrapper
constructor (for the C and the Python version of io library):
if self._seekable and self.writable():
position = self.buffer.tell()
if position != 0:
self._encoder = self._get_encoder()
self._encoder.setstate(0) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年03月20日 00:37:48 | vstinner | set | recipients:
+ vstinner, pitrou |
| 2009年03月20日 00:37:48 | vstinner | set | messageid: <1237509468.05.0.578962629673.issue5006@psf.upfronthosting.co.za> |
| 2009年03月20日 00:37:44 | vstinner | link | issue5006 messages |
| 2009年03月20日 00:37:44 | vstinner | create |
|