[issue26292] Raw I/O writelines() broken

Martin Panter report at bugs.python.org
Fri Feb 5 07:05:50 EST 2016


Martin Panter added the comment:

Is deprecating RawIOBase.writelines() an option, and only recommending BufferedIOBase.writelines() and TextIOBase.writelines()?

Otherwise, I think it would make most sense to keep retrying until all the data is written. This mirrors how I understand readline() and readall() work (keeps reading until it gets as much as necessary).

For non-blocking mode, readline() does not support that (see Issue 13858). It does not make much sense to me to have writelines() support non-blocking mode either.

----------
nosy: +martin.panter

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


More information about the Python-bugs-list mailing list