[issue32875] Add __exit__() method to event loops

2018-02-26 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree -- ___ Python tracker ___ ___

[issue32875] Add __exit__() method to event loops

2018-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: A. Svetlov, closing #24795: "Superseded by `asyncio.run()` function." -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue32875] Add __exit__() method to event loops

2018-02-23 Thread Martin Panter
Martin Panter added the comment: Maybe already discussed in Issue 24795? -- nosy: +martin.panter superseder: -> Make event loops with statement context managers ___ Python tracker

[issue32875] Add __exit__() method to event loops

2018-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Enhancements only go in future releases not yet in beta. Do loops already have an __enter__ method, also required for with? What would you have the close method do? Preemptorially cancel all tasks and close the loop? With statement are

[issue32875] Add __exit__() method to event loops

2018-02-19 Thread Victor Porton
New submission from Victor Porton : Please add `__exit__()` method to event loops, to use them with `with`. -- components: asyncio messages: 312360 nosy: asvetlov, porton, yselivanov priority: normal severity: normal status: open title: Add __exit__() method to event