[issue26292] Raw I/O writelines() broken for non-blocking I/O

Martin Panter report at bugs.python.org
Mon Jun 20 09:30:22 EDT 2016


Martin Panter added the comment:

Here is a patch documenting that RawIOBase.writelines() is undefined for partial writes and blocking errors, as mentioned in (1) above.

The alternative of requiring write() to be retried would IMO be unfair to existing writelines() implementations. It also seems out of place considering we don’t even have a RawIOBase.writeexactly() type of method.

----------
keywords: +patch
Added file: http://bugs.python.org/file43488/writelines-doc.patch

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


More information about the Python-bugs-list mailing list