Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue30241

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Add contextlib.AbstractAsyncContextManager
Type:enhancementStage:resolved
Components:Library (Lib)Versions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: JelleZijlstra, levkivskyi, ncoghlan, yselivanov
Priority:normalKeywords:

Created on2017-05-03 04:12 byJelleZijlstra, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 1412mergedJelleZijlstra,2017-05-03 04:17
Messages (2)
msg292835 -(view)Author: Jelle Zijlstra (JelleZijlstra)*(Python committer)Date: 2017-05-03 04:12
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 aPEP 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.
msg308270 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)Date: 2017-12-14 01:19
New changeset176baa326be4ec2dc70ca0c054b7e2ab7ca6a9cf by Yury Selivanov (Jelle Zijlstra) in branch 'master':bpo-30241: implement contextlib.AbstractAsyncContextManager (#1412)https://github.com/python/cpython/commit/176baa326be4ec2dc70ca0c054b7e2ab7ca6a9cf
History
DateUserActionArgs
2022-04-11 14:58:46adminsetgithub: 74427
2017-12-14 01:20:16yselivanovsetstatus: open -> closed
resolution: fixed
stage: resolved
2017-12-14 01:19:20yselivanovsetmessages: +msg308270
2017-05-03 04:17:28JelleZijlstrasetpull_requests: +pull_request1520
2017-05-03 04:12:21JelleZijlstracreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp