STINNER Victor <victor.stin...@haypocalc.com> added the comment: open("test.bin", "w+b", buffering=-1) creates a BufferedRandom object. In the _pyio module, BufferedRandom overrides the write() method to "undo readahead", whereas the _io module reuses bufferedwriter_write() for bufferedrandom_methods and bufferedwriter_methods.
I suppose that the problem is "just" that _io.BufferedRandom.write() doesn't undo readahead. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12062> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com