STINNER Victor <victor.stin...@haypocalc.com> added the comment: >> My patch tries to fix interlaced read-write by always calling flush(), > > Why do you need to call flush()? Can't you read from the buffer?
Hum, my patch does not always call flush of the reader and the writer. On read, it flushs the writer. On write, it "flushes" the reader (undo readahead). It is maybe possible to do better (do something faster), but there should be some tricky cases with seek(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12213> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com