This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients Jonathan Kamens, Paolo Veglia, jmadden, marcjofre, martin.panter, pje
Date 2016-04-03.23:56:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
My worry was that it is easy to make a write() method that does not return anything, but is still useful in most cases. Since BufferedIOBase.write() has to guarantee to write everything, it may not seem important to return a value. But we could explicitly check for None as you suggested.

In the BaseHandler class, each chunk yielded by the application is passed to BaseHandler.write(). But that method calls self._flush(), which should avoid any buffering problem. SimpleHandler._flush() implements this by calling self.stdout.flush().
Date User Action Args
2016-04-03 23:56:52martin.pantersetrecipients: + martin.panter, pje, jmadden, Jonathan Kamens, marcjofre, Paolo Veglia
2016-04-03 23:56:52martin.pantersetmessageid: <>
2016-04-03 23:56:52martin.panterlinkissue24291 messages
2016-04-03 23:56:52martin.pantercreate