[issue34371] File reading gets stuck if you read at eof on macos

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue34371] File reading gets stuck if you read at eof on macos

2018-08-10 Thread Ronald Oussoren
Change by Ronald Oussoren : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue34371] File reading gets stuck if you read at eof on macos

2018-08-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: For completeness sake I've attached a C program demonstrating the same problem. -- status: pending -> open Added file: https://bugs.python.org/file47740/readwrite.c ___ Python tracker

[issue34371] File reading gets stuck if you read at eof on macos

2018-08-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is IMHO not a bug in CPython (or even macOS). On Python 2.7 file I/O is implemented using C's stdio library and that prescribes this behaviour (the "at EOF" state of a file stream is sticky. fd.seek(0, 2) should unset the "at EOF" flag. -- n

[issue34371] File reading gets stuck if you read at eof on macos

2018-08-10 Thread Sverrir Berg
New submission from Sverrir Berg : Reading a file that is at eof causes the file reading to halt indefinitely. 1) open() a file and read() everything from it. 2) call read() a second time - reading nothing (this causes the issue). 3) append to the file (using another file handle or manually). 4)