[issue24666] Buffered I/O does not take file position into account when reading blocks

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24666] Buffered I/O does not take file position into account when reading blocks

2021-10-22 Thread STINNER Victor
STINNER Victor added the comment: Hi, the io module doesn't use the block size of the filesystem. io.BufferedReader uses a default buffer size of 8 * 1024 bytes. I don't think that it's really important to respect the block size in Python. There are buffers at many levels. io.BufferedReader

[issue24666] Buffered I/O does not take file position into account when reading blocks

2020-01-28 Thread Kubilay Kocak
Change by Kubilay Kocak : -- assignee: docs@python -> components: -2to3 (2.x to 3.x conversion tool), Build, Cross-Build, Documentation, Extension Modules, FreeBSD, Installation, Interpreter Core, Library (Lib), SSL, Tests, Unicode, ctypes nosy: -docs@python, koobs

[issue24666] Buffered I/O does not take file position into account when reading blocks

2020-01-28 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: -Alex.Willmer, ezio.melotti, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24666] Buffered I/O does not take file position into account when reading blocks

2020-01-27 Thread CRYSTAL
Change by CRYSTAL : -- assignee: -> docs@python components: +2to3 (2.x to 3.x conversion tool), Build, Cross-Build, Documentation, Extension Modules, FreeBSD, Installation, Interpreter Core, Library (Lib), SSL, Tests, Unicode, ctypes nosy: +Alex.Willmer, docs@python, ezio.melotti,

[issue24666] Buffered I/O does not take file position into account when reading blocks

2015-07-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +benjamin.peterson, pitrou, stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24666 ___

[issue24666] Buffered I/O does not take file position into account when reading blocks

2015-07-18 Thread Eric Pruitt
New submission from Eric Pruitt: When buffering data from a file, the buffered I/O does not take into account the current file descriptor position. In the following example, I open a file and seek forward 1,000 bytes: f = open(test-file, rb) f.seek(1000) 1000 f.readline() The filesystem