Guido van Rossum added the comment: 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 <rep...@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 <rep...@bugs.python.org> > <http://bugs.python.org/issue24795> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24795> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com