Charles-François Natali added the comment: > What's wrong with working around this bug by reading a smaller amount? > How much data is there supposed to be?
Nothing, except that there are probably other places in the stdlib where we can get bitten by this bug. Note that this should eventually be done for another reason, see http://bugs.python.org/issue15918 > In the work-around, we need to watch out for what 'man 2 read' on Mac OS > refers to as > "normal file": There's nothing special actually. This precision concerning normal file is OS-X specific, POSIX makes no such guarantee: you can always get a short read (e.g. because of signal delivery), so one should always call read() in a loop. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15896> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com