[issue4428] io.BufferedWriter does not observe buffer size limits

Amaury Forgeot d'Arc report at bugs.python.org
Sat Nov 29 02:15:46 CET 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

I do not agree. User code should not have to verify the return value of write().

When a big amount of data is passed to BufferedWriter.write,
- normal blocking streams should block until all data has been written.
(the implementation may call self.raw.write several times)
- non-blocking streams should raise BlockingIOError indicating the number of 
characters actually written.

This applies only to buffered files, of course.

----------
nosy: +amaury.forgeotdarc

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


More information about the Python-bugs-list mailing list