Skip to content

on __exit__(), exc_value does not contain the exception. #52101

@florentx

Description

@florentx
mannequin
BPO 7853
Nosy @pitrou, @benjaminp, @florentx
Files
  • case_contextmanager_exit.py
  • issue7853_cm_exit.diff: Patch, apply to trunk
  • 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/benjaminp'
    closed_at = <Date 2010-02-05.02:12:53.035>
    created_at = <Date 2010-02-04.09:35:08.283>
    labels = ['interpreter-core', 'type-bug']
    title = 'on __exit__(), exc_value does not contain the exception.'
    updated_at = <Date 2010-02-06.02:03:18.483>
    user = 'https://github.com/florentx'

    bugs.python.org fields:

    activity = <Date 2010-02-06.02:03:18.483>
    actor = 'benjamin.peterson'
    assignee = 'benjamin.peterson'
    closed = True
    closed_date = <Date 2010-02-05.02:12:53.035>
    closer = 'benjamin.peterson'
    components = ['Interpreter Core']
    creation = <Date 2010-02-04.09:35:08.283>
    creator = 'flox'
    dependencies = []
    files = ['16126', '16137']
    hgrepos = []
    issue_num = 7853
    keywords = ['patch']
    message_count = 7.0
    messages = ['98817', '98833', '98834', '98835', '98860', '98863', '98928']
    nosy_count = 3.0
    nosy_names = ['pitrou', 'benjamin.peterson', 'flox']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue7853'
    versions = ['Python 2.6', 'Python 2.7']

    Metadata

    Metadata

    Assignees

    Labels

    interpreter-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