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 John Belmonte
Recipients John Belmonte, njs
Date 2020-04-07.02:13:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586225612.65.0.881233882976.issue40213@roundup.psfhosted.org>
In-reply-to
Content
Please add aclosing() to contextlib, the async equivalent of closing().

It's needed to ensure deterministic call of aclose() on the resource object at block exit.

It's been available in the async_generator module for some time.  However that module is intended to provide async generators to Python 3.5, so it's odd for apps using modern Python versions to depend on it only for aclosing().

https://github.com/python-trio/async_generator/blob/22eddc191c2ae3fc152ca13cf2d6fa55ac3f1568/async_generator/_util.py#L6
History
Date User Action Args
2020-04-07 02:13:32John Belmontesetrecipients: + John Belmonte, njs
2020-04-07 02:13:32John Belmontesetmessageid: <1586225612.65.0.881233882976.issue40213@roundup.psfhosted.org>
2020-04-07 02:13:32John Belmontelinkissue40213 messages
2020-04-07 02:13:32John Belmontecreate