Skip to content

contextlib.nullcontext doesn't work with async context managers #85715

Description

@tomgrin10
mannequin
BPO 41543
Nosy @njsmith, @asvetlov, @1st1, @tomgrin10
PRs
  • bpo-41543: contextlib.nullcontext can fill in for an async context manager #21870
  • 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-09.13:24:59.262>
    created_at = <Date 2020-08-13.20:58:48.583>
    labels = ['type-feature', 'library', '3.10', 'expert-asyncio']
    title = "contextlib.nullcontext doesn't work with async context managers"
    updated_at = <Date 2020-11-09.13:24:59.261>
    user = 'https://github.com/tomgrin10'

    bugs.python.org fields:

    activity = <Date 2020-11-09.13:24:59.261>
    actor = 'asvetlov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-11-09.13:24:59.262>
    closer = 'asvetlov'
    components = ['Library (Lib)', 'asyncio']
    creation = <Date 2020-08-13.20:58:48.583>
    creator = 'tomgrin10'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41543
    keywords = ['patch']
    message_count = 4.0
    messages = ['375346', '375351', '375357', '380582']
    nosy_count = 4.0
    nosy_names = ['njs', 'asvetlov', 'yselivanov', 'tomgrin10']
    pr_nums = ['21870']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue41543'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesstdlibStandard Library Python modules in the Lib/ directorytopic-asynciotype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions