Skip to content

Unhelpful UnboundLocalError due to del'ing of exception target #61992

Description

@warsaw
BPO 17792
Nosy @warsaw, @ncoghlan, @tiran, @benjaminp, @ezio-melotti, @bitdancer, @pmp-p, @ericsnowcurrently, @serhiy-storchaka, @phmc, @MojoVampire, @ilevkivskyi, @iritkatriel, @aaronwsmith
PRs
  • bpo-17792: more accurate error message for UnboundLocalError #24976
  • Files
  • issue17792.diff
  • issue17792-2.diff
  • 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 = None
    created_at = <Date 2013-04-18.23:55:22.492>
    labels = ['expert-tkinter', 'type-crash', '3.11']
    title = "Unhelpful UnboundLocalError due to del'ing of exception target"
    updated_at = <Date 2021-10-02.03:18:05.344>
    user = 'https://github.com/warsaw'

    bugs.python.org fields:

    activity = <Date 2021-10-02.03:18:05.344>
    actor = 'sppraveenkumarinfo'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tkinter']
    creation = <Date 2013-04-18.23:55:22.492>
    creator = 'barry'
    dependencies = []
    files = ['29936', '29989']
    hgrepos = []
    issue_num = 17792
    keywords = ['patch']
    message_count = 21.0
    messages = ['187313', '187315', '187319', '187320', '187322', '187326', '187327', '187328', '187339', '187342', '187382', '187433', '187627', '187639', '187640', '187645', '389264', '394902', '394903', '402980', '402992']
    nosy_count = 15.0
    nosy_names = ['barry', 'ncoghlan', 'christian.heimes', 'benjamin.peterson', 'ezio.melotti', 'Arfrever', 'r.david.murray', 'pmpp', 'eric.snow', 'serhiy.storchaka', 'pconnell', 'josh.r', 'levkivskyi', 'iritkatriel', 'aaronwsmith']
    pr_nums = ['24976']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue17792'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixespendingThe issue will be closed if no feedback is provided

      Fields

      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions