This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients asvetlov, porton, terry.reedy, yselivanov
Date 2018-02-24.00:12:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519431175.08.0.467229070634.issue32875@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2018-02-24 00:12:55terry.reedysetrecipients: + terry.reedy, asvetlov, yselivanov, porton
2018-02-24 00:12:55terry.reedysetmessageid: <1519431175.08.0.467229070634.issue32875@psf.upfronthosting.co.za>
2018-02-24 00:12:55terry.reedylinkissue32875 messages
2018-02-24 00:12:55terry.reedycreate