Message248116
My worry is that the context manager will make people believe it's a good
pattern to create an event loop just to make one call. If tests violate
this pattern, add a context manager helper function to test_utils.py.
On Thu, Aug 6, 2015 at 2:57 AM, Martin Panter <report@bugs.python.org>
wrote:
>
> Martin Panter added the comment:
>
> >From what I can see, the examples in the current documentation tend to
> diectly call loop.close() without an exception handler. Only two examples
> have the bare-bones try / finally handler (which is important for the
> example that uses Ctrl+C).
>
> ----------
> nosy: +vadmium
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue24795>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2015-08-06 09:10:43 | gvanrossum | set | recipients:
+ gvanrossum, vstinner, martin.panter, yselivanov, Mathias Fröjdman |
2015-08-06 09:10:42 | gvanrossum | link | issue24795 messages |
2015-08-06 09:10:42 | gvanrossum | create | |
|