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 dabeaz, eryksun, martin.panter
Date 2015-10-27.11:19:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445944795.33.0.565624626345.issue25476@psf.upfronthosting.co.za>
In-reply-to
Content
David, what’s your use case for doing non-blocking buffered writing “correctly”? Would you be able to use the context manager functionality? I would have thought you would explicitly call flush() as many times as necessary, but only call close() once when you are done.

At least in blocking mode, close() is meant do as much as possible, despite any intermediate exceptions. It doesn’t seem wise to break this rule in non-blocking mode.
History
Date User Action Args
2015-10-27 11:19:55martin.pantersetrecipients: + martin.panter, dabeaz, eryksun
2015-10-27 11:19:55martin.pantersetmessageid: <1445944795.33.0.565624626345.issue25476@psf.upfronthosting.co.za>
2015-10-27 11:19:55martin.panterlinkissue25476 messages
2015-10-27 11:19:55martin.pantercreate