Skip to content

@asynccontextmanager decorated functions are not callable like @contextmanager #82596

@fried

Description

@fried
mannequin
BPO 38415
Nosy @ambv, @serhiy-storchaka, @1st1, @graingert, @fried
PRs
  • bpo-38415 @asynccontextmanager as decorators like @contextmanager #16667
  • bpo-38415: Remove redundant AsyncContextDecorator.__call__ override from _AsyncG… #30233
  • 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 2021-09-23.21:37:12.435>
    created_at = <Date 2019-10-08.20:45:49.255>
    labels = ['type-feature', 'library', '3.11']
    title = '@asynccontextmanager decorated functions are not callable like @contextmanager'
    updated_at = <Date 2022-02-26.12:05:50.881>
    user = 'https://github.com/fried'

    bugs.python.org fields:

    activity = <Date 2022-02-26.12:05:50.881>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-23.21:37:12.435>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2019-10-08.20:45:49.255>
    creator = 'fried'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38415
    keywords = ['patch']
    message_count = 5.0
    messages = ['354232', '402528', '402529', '409056', '414094']
    nosy_count = 5.0
    nosy_names = ['lukasz.langa', 'serhiy.storchaka', 'yselivanov', 'graingert', 'fried']
    pr_nums = ['16667', '30233']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue38415'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions