Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: Updated patch.
[I also tried to avoid reading the underlying file if len(self.bytebuffer)>=size, but it does not work with multibytes chars when size=1] ---------- Added file: http://bugs.python.org/file16706/codecs_read-2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com