Author vstinner
Recipients pitrou, vstinner
Date 2009-03-26.17:26:27
SpamBayes Score 4.0232e-11
Marked as misclassified No
Message-id <200903261826.18853.victor.stinner@haypocalc.com>
In-reply-to <1238086538.14.0.649193116499.issue5006@psf.upfronthosting.co.za>
Content
> - 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.
History
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