> On Nov 7, 2016, at 12:50 PM, Brett Cannon <br...@python.org> wrote: > > > > On Sun, 6 Nov 2016 at 22:41 Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > >> On Nov 6, 2016, at 8:20 PM, Brett Cannon <br...@python.org> wrote: >> >> For me there are two questions the post raises. One is how do we keep people >> from tying themselves to any one event loop? > > Deprecate, then remove, get_event_loop() :-). > > Is there a bug filed for that at https://github.com/python/asyncio?
I don’t think we need to deprecate get_event_loop(). With https://github.com/python/asyncio/pull/452 merged in 3.6, get_event_loop becomes more predictable. Now it’s a documentation issue (I’m trying to work on that) to explain asyncio users not to use it (and where they *do* need to use it). I will also open a PR soon to add asyncio.main() function (or asyncio.run()) to further simplify working with asyncio & its documentation. That should make get_event_loop to disappear for end users. Yury _______________________________________________ Async-sig mailing list Async-sig@python.org https://mail.python.org/mailman/listinfo/async-sig Code of Conduct: https://www.python.org/psf/codeofconduct/