Antoine Pitrou <pit...@free.fr> added the comment: > FileIO.readall() reads the file position and size before each call to > read(), to adjust the buffer size. > > Moreover FileIO.readall() calls lseek() on Windows: it should use > _lseeki64() instead, to handle correctly file bigger than 2 GB (or > maybe 4 GB? I don't know). > > Attached patch fixes both problems.
Looks ok to me. Did you test under Windows? Did you run some benchmarks? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12175> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com