David Wilson <d...@botanicus.net> added the comment:

If we treat different errnos specially, the list of 'okay to silently fail' 
errors seems quite succinct. In another project I treat EIO, EPIPE and 
ECONNRESET as EOF, and raise all others -- 
https://github.com/dw/mitogen/blob/c6de090f083a58344e91ab97847bf7ae3feb9134/mitogen/core.py#L501-L532

But even in this case, if readall() returns the partial buffer given a 'good' 
errno, does it still discard the partial buffer given a 'bad' one? That still 
doesn't feel right

----------

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

Reply via email to