Message83834
@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) |
|
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 | |
|