Guido van Rossum added the comment: The intention was that the lowest-level (unbuffered) stream object can write fewer bytes than given to it, as it is a direct interface to the underlying system call, which has this property (especially when the file is in non-blocking mode).
I think it's fine to return None from the higher-level classes' write() method (buffered and text). Though this makes it a bit harder to switch between buffered and unbuffered binary output. Perhaps text I/O should return None and bytes I/O should return a byte count? __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1775> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com