On 21Aug2012 02:39, Andrea Griffini <[email protected]> wrote: | On Mon, Aug 20, 2012 at 11:42 PM, Antoine Pitrou <[email protected]> wrote: | >> In the spirit of RawIO.write(), I think RawIO.writelines() could return | >> the number of bytes written (allowing for partial writes). | | When dealing with a non-blocking IO what you normally do is use number | returned from the write call to make next call and try to write the | remaining part. | | How is this supposed to work with writelines? What is the caller supposed to do?
I'd expect writelines to include such logic within itself, personally. -- Cameron Simpson <[email protected]> Yield to temptation; It may not pass your way again. - Robert A Heinlein _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
