[issue10956] file.write and file.read don't handle EINTR

Mark Florisson report at bugs.python.org
Thu Jan 20 16:08:04 CET 2011


Mark Florisson <markflorisson88 at gmail.com> added the comment:

> Ok. This would only be done in buffered mode, though, so your fwrite.py example would have to be changed slightly (drop the ",0" in fdopen()).

Indeed, good catch. So apparently file.write (in buffered mode) is also "incorrect" in Python 3.

----------
Added file: http://bugs.python.org/file20464/fwrite.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10956>
_______________________________________


More information about the Python-bugs-list mailing list