Skip to content

Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error #71287

@ellingtonjp

Description

@ellingtonjp
BPO 27100
Nosy @rhettinger, @ncoghlan, @benjaminp, @ned-deily, @serhiy-storchaka, @1st1, @zhangyangyu, @TeamSpen210, @maggyero
PRs
  • bpo-39048: Look up __aenter__ before __aexit__ in the async with statement #17609
  • Files
  • with.patch
  • fix_with_refleak.diff: Fix reference leak
  • regexp-deprecated.patch
  • 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 = 'https://github.com/1st1'
    closed_at = <Date 2017-04-04.15:13:02.650>
    created_at = <Date 2016-05-24.03:28:37.689>
    labels = ['interpreter-core', 'type-bug', '3.7']
    title = 'Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error'
    updated_at = <Date 2019-12-14.20:02:46.174>
    user = 'https://bugs.python.org/ellingtonjp'

    bugs.python.org fields:

    activity = <Date 2019-12-14.20:02:46.174>
    actor = 'maggyero'
    assignee = 'yselivanov'
    closed = True
    closed_date = <Date 2017-04-04.15:13:02.650>
    closer = 'ncoghlan'
    components = ['Interpreter Core']
    creation = <Date 2016-05-24.03:28:37.689>
    creator = 'ellingtonjp'
    dependencies = []
    files = ['42962', '45604', '45618']
    hgrepos = []
    issue_num = 27100
    keywords = ['patch']
    message_count = 24.0
    messages = ['266219', '266222', '266226', '266227', '266232', '277570', '277592', '277666', '277735', '281426', '281427', '281454', '281455', '281497', '281505', '281509', '281510', '281602', '281606', '281610', '281643', '291092', '291124', '358404']
    nosy_count = 11.0
    nosy_names = ['rhettinger', 'ncoghlan', 'benjamin.peterson', 'ned.deily', 'python-dev', 'serhiy.storchaka', 'yselivanov', 'xiang.zhang', 'Spencer Brown', 'ellingtonjp', 'maggyero']
    pr_nums = ['17609']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27100'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions