[Python-ideas] make Connections iterable

Amit Green amit.mixie at gmail.com
Mon Jan 8 22:39:47 EST 2018


On Mon, Jan 8, 2018 at 10:34 PM, Nick Coghlan <ncoghlan at gmail.com> wrote

> It could be useful to include a recipe in the documentation that shows a
> generator with suitable error handling (taking the generic connection
> errors and adapting them to app specific ones) while also showing how to
> adapt the connection to the iterator protocol, though.
>

Agreed +1.

This would be great for three reasons:

   - Error handling should be as close to the source of errors as possible
   (i.e.: in the iterator).
   - Converting error's and adapting them is a great idea;
   - Mostly: Any documentation that shows people how to do better error
   handling, is always welcome.


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180108/03effa90/attachment.html>


More information about the Python-ideas mailing list