Martin Panter added the comment:

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.

----------
nosy: +martin.panter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25476>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to