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 JelleZijlstra
Recipients JelleZijlstra, levkivskyi, ncoghlan, yselivanov
Date 2017-05-03.04:12:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493784741.35.0.949796244558.issue30241@psf.upfronthosting.co.za>
In-reply-to
Content
It would be useful to have an abstract base class for asynchronous context managers, similar to the existing contextlib.AbstractContextManager. We can then also add this class to typing and use it as a PEP 544 Protocol.

I have code ready for contextlib.AbstractAsyncContextManager and will submit the PR shortly. I'll also add support in typing and typeshed if the CPython change is accepted.
History
Date User Action Args
2017-05-03 04:12:21JelleZijlstrasetrecipients: + JelleZijlstra, ncoghlan, yselivanov, levkivskyi
2017-05-03 04:12:21JelleZijlstrasetmessageid: <1493784741.35.0.949796244558.issue30241@psf.upfronthosting.co.za>
2017-05-03 04:12:21JelleZijlstralinkissue30241 messages
2017-05-03 04:12:20JelleZijlstracreate