Skip to content

Raise TypeError in ExitStack.enter_context() for bad argument #88637

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 44471
Nosy @ncoghlan, @serhiy-storchaka, @1st1
PRs
  • bpo-44471: Change error type for bad objects in ExitStack.enter_context() #26820
  • Dependencies
  • bpo-12022: AttributeError should report the same details when raised by lookup_special() as when raised in the REPL
  • 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-06-29.08:29:12.209>
    created_at = <Date 2021-06-21.07:43:53.258>
    labels = ['type-feature', 'library', '3.11']
    title = 'Raise TypeError in ExitStack.enter_context() for bad argument'
    updated_at = <Date 2021-06-29.08:29:12.209>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2021-06-29.08:29:12.209>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-06-29.08:29:12.209>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2021-06-21.07:43:53.258>
    creator = 'serhiy.storchaka'
    dependencies = ['12022']
    files = []
    hgrepos = []
    issue_num = 44471
    keywords = ['patch']
    message_count = 2.0
    messages = ['396209', '396708']
    nosy_count = 3.0
    nosy_names = ['ncoghlan', 'serhiy.storchaka', 'yselivanov']
    pr_nums = ['26820']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue44471'
    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