<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 8, 2018 at 7:27 PM, Amit Green <span dir="ltr"><<a href="mailto:amit.mixie@gmail.com" target="_blank">amit.mixie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>An argument against this API, is that any caller of recv should be doing error handling (i.e.: catching exceptions from the socket).<br></div></div></div></div></blockquote><div><br></div><div>It's still not entirely clear, but I'm pretty sure this thread is talking about multiprocessing.Connection objects, which don't have anything to do with sockets. (I think. They might use sockets internally on some platforms.)<br></div></div><div class="gmail_quote"><br></div><div class="gmail_quote">The only documented error from multiprocessing.Connection.recv is EOFError, which is basically equivalent to a StopIteration.</div><div class="gmail_quote"><br></div><div class="gmail_quote">I'm surprised that multiprocessing.Connection isn't iterable -- it seems like an obvious oversight.<br></div><br></div><div class="gmail_extra">-n<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Nathaniel J. Smith -- <a href="http://vorpus.org" target="_blank">https://vorpus.org</a></div></div></div>
</div></div>