Skip to content

AttributeError should report the same details when raised by lookup_special() as when raised in the REPL #56231

@dholth

Description

@dholth
mannequin
BPO 12022
Nosy @gvanrossum, @benjaminp, @merwok, @durban, @dholth, @serhiy-storchaka, @iritkatriel
PRs
  • bpo-12022: Change error type for bad objects in "with" and "async with" #26809
  • 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/serhiy-storchaka'
    closed_at = <Date 2021-06-29.08:29:06.821>
    created_at = <Date 2011-05-06.20:07:21.538>
    labels = ['interpreter-core', 'type-bug', '3.11']
    title = 'AttributeError should report the same details when raised by lookup_special() as when raised in the REPL'
    updated_at = <Date 2021-06-29.08:29:06.820>
    user = 'https://github.com/dholth'

    bugs.python.org fields:

    activity = <Date 2021-06-29.08:29:06.820>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2021-06-29.08:29:06.821>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2011-05-06.20:07:21.538>
    creator = 'dholth'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 12022
    keywords = ['patch']
    message_count = 9.0
    messages = ['135365', '135388', '135484', '135491', '136640', '354977', '396148', '396165', '396707']
    nosy_count = 7.0
    nosy_names = ['gvanrossum', 'benjamin.peterson', 'eric.araujo', 'daniel.urban', 'dholth', 'serhiy.storchaka', 'iritkatriel']
    pr_nums = ['26809']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue12022'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Labels

    3.11only security fixesinterpreter-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