Skip to content

Add missed AsyncContextDecorator to contextlib #84993

Closed

Description

@heckad
mannequin
BPO 40816
Nosy @jab, @asvetlov, @1st1, @heckad, @belm0, @Fidget-Spinner
PRs
  • bpo-40816 Add AsyncContextDecorator class #20516
  • bpo-40816: [docs] Fix wrongly named AsyncContextManager #23164
  • 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 2020-11-05.08:53:43.151>
    created_at = <Date 2020-05-29.14:53:13.152>
    labels = ['library', '3.10']
    title = 'Add missed AsyncContextDecorator to contextlib'
    updated_at = <Date 2020-11-05.15:12:45.320>
    user = 'https://github.com/heckad'

    bugs.python.org fields:

    activity = <Date 2020-11-05.15:12:45.320>
    actor = 'kj'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-11-05.08:53:43.151>
    closer = 'asvetlov'
    components = ['Library (Lib)']
    creation = <Date 2020-05-29.14:53:13.152>
    creator = 'heckad'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40816
    keywords = ['patch']
    message_count = 6.0
    messages = ['370317', '370630', '370817', '371834', '373802', '380398']
    nosy_count = 6.0
    nosy_names = ['jab', 'asvetlov', 'yselivanov', 'heckad', 'John Belmonte', 'kj']
    pr_nums = ['20516', '23164']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue40816'
    versions = ['Python 3.10']

    Activity

    1. heckad commented on May 29, 2020

      heckadmannequin
      MannequinAuthor

      I can use context manager as decorator but can't use async context manager. Seems it because didn't implemented AsyncContextDecorator class

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on May 29, 2020
    3. 1st1 commented on Jun 2, 2020

      @1st1
      Member
    4. heckad commented on Jun 6, 2020

      heckadmannequin
      MannequinAuthor

      No, please look at the pull request.

    5. heckad commented on Jun 18, 2020

      heckadmannequin
      MannequinAuthor

      Yury Selivanov, did you see the pull request?

    6. belm0 commented on Jul 17, 2020

      belm0mannequin
      Mannequin

      Thank you heckad!

      I'm in need of a decorating asynccontextmanager, and glad that an implementation is in the works that I can copy from in the meantime.

      I hope Yuri reviews the PR before long.

    7. asvetlov commented on Nov 5, 2020

      @asvetlov
      Contributor

      New changeset 178695b by Kazantcev Andrey in branch 'master':
      bpo-40816 Add AsyncContextDecorator class (GH-20516)
      178695b

    8. added and removed on Nov 5, 2020
    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions