Marc-Andre Lemburg added the comment: On 14.01.2015 02:21, Martin Panter wrote: > > Martin Panter added the comment: > > I don’t think this is appropriate. If you want to flush the underlying > stream, then call its flush() method after calling reset(). The docstring > only says it flushes the _codec’s_ buffers, not any buffers of the underlying > stream, and it should not be the codec’s business to worry about lower level > buffers.
Correct. That's the reason why the method is called .reset() and not .flush(). ---------- nosy: +lemburg _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14014> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com