Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contextlib.AbstractAsyncContextManager #74427

Closed
JelleZijlstra opened this issue May 3, 2017 · 2 comments
Closed

Add contextlib.AbstractAsyncContextManager #74427

JelleZijlstra opened this issue May 3, 2017 · 2 comments
Labels
3.7 stdlib type-feature

Comments

@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented May 3, 2017

BPO 30241
Nosy @ncoghlan, @1st1, @ilevkivskyi, @JelleZijlstra
PRs
  • #1412
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-12-14.01:20:16.403>
    created_at = <Date 2017-05-03.04:12:21.312>
    labels = ['3.7', 'type-feature', 'library']
    title = 'Add contextlib.AbstractAsyncContextManager'
    updated_at = <Date 2017-12-14.01:20:16.402>
    user = 'https://github.com/JelleZijlstra'

    bugs.python.org fields:

    activity = <Date 2017-12-14.01:20:16.402>
    actor = 'yselivanov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-12-14.01:20:16.403>
    closer = 'yselivanov'
    components = ['Library (Lib)']
    creation = <Date 2017-05-03.04:12:21.312>
    creator = 'JelleZijlstra'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30241
    keywords = []
    message_count = 2.0
    messages = ['292835', '308270']
    nosy_count = 4.0
    nosy_names = ['ncoghlan', 'yselivanov', 'levkivskyi', 'JelleZijlstra']
    pr_nums = ['1412']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue30241'
    versions = ['Python 3.7']

    @JelleZijlstra
    Copy link
    Member Author

    @JelleZijlstra JelleZijlstra commented May 3, 2017

    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.

    @JelleZijlstra JelleZijlstra added 3.7 stdlib type-feature labels May 3, 2017
    @1st1
    Copy link
    Member

    @1st1 1st1 commented Dec 14, 2017

    New changeset 176baa3 by Yury Selivanov (Jelle Zijlstra) in branch 'master':
    bpo-30241: implement contextlib.AbstractAsyncContextManager (bpo-1412)
    176baa3

    @1st1 1st1 closed this as completed Dec 14, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 stdlib type-feature
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants