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-26.17:26:27
SpamBayes Score 4.0231984e-11
Marked as misclassified No
Message-id <>
In-reply-to <>
> - I'm not sure why you make self->ok handling more complicated than it was

tell() requires self->ok=1. I choosed to reset self->ok to zero on error, but 
it's maybe useless.

> - encodefunc should not be forced to NULL, otherwise it will yield a big
> decrease in write() performance

self>encodefunc value have to be changed because <encoder>.setstate() changes 
the encoding function: UTF-16 => UTF-16-LE or UTF-16-BE.

I don't know how to get the new value of self>encodefunc. I will try to write 
another patch.
Date User Action Args
2009-03-26 17:26:30vstinnersetrecipients: + vstinner, pitrou
2009-03-26 17:26:28vstinnerlinkissue5006 messages
2009-03-26 17:26:27vstinnercreate