Марк Коренберг added the comment: well, I don't use "r|" (but will, thanks for suggestion)
In any case, assuming that read() returns exact length is wrong. There is .readexactly() (f.e. in asyncio I mean). Or, one should use simple loop to call .read() multiple times. Reading from plain file does not guarantee, that read() syscall will return requested count of bytes even when these bytes are available. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26877> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com