Terry J. Reedy <tjre...@udel.edu> 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 usually for ensuring deterministic cleanup after the last substatement, such as closing a file. Can you give a short usage example? ---------- nosy: +terry.reedy versions: +Python 3.8 -Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32875> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com