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 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:48vstinnersetrecipients: + vstinner, pitrou
2009-03-20 00:37:48vstinnersetmessageid: <1237509468.05.0.578962629673.issue5006@psf.upfronthosting.co.za>
2009-03-20 00:37:44vstinnerlinkissue5006 messages
2009-03-20 00:37:44vstinnercreate