[issue22526] file iteration crashes for huge lines (2GiB+)

2014-09-30 Thread Jakub Mateusz Kowalski
New submission from Jakub Mateusz Kowalski: File /tmp/2147483648zeros is 2^31 (2GiB) zero-bytes ('\0'). Readline method works fine: fh = open('/tmp/2147483648zeros', 'rb') line = fh.readline() len(line) 2147483648 However when I try to iterate over the file: fh =

[issue22526] file iteration crashes for huge lines (2GiB+)

2014-09-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22526 ___ ___ Python-bugs-list