Skip to content

remove wrapping of __set_name__ exceptions in RuntimeError #77758

Closed

Description

@carljm
BPO 33577
Nosy @carljm

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 2018-05-19.05:43:22.815>
created_at = <Date 2018-05-19.05:41:49.927>
labels = ['interpreter-core', '3.8']
title = 'remove wrapping of __set_name__ exceptions in RuntimeError'
updated_at = <Date 2018-05-19.05:43:22.814>
user = 'https://github.com/carljm'

bugs.python.org fields:

activity = <Date 2018-05-19.05:43:22.814>
actor = 'carljm'
assignee = 'none'
closed = True
closed_date = <Date 2018-05-19.05:43:22.815>
closer = 'carljm'
components = ['Interpreter Core']
creation = <Date 2018-05-19.05:41:49.927>
creator = 'carljm'
dependencies = []
files = []
hgrepos = []
issue_num = 33577
keywords = []
message_count = 2.0
messages = ['317099', '317102']
nosy_count = 1.0
nosy_names = ['carljm']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue33577'
versions = ['Python 3.8']

Activity

  1. carljm commented on May 19, 2018

    @carljm
    MemberAuthor

    Per Nick Coghlan in discussion on bpo-21145:

    "I think it would make sense to remove the exception wrapping from the __set_name__ calls - I don't think we're improving the ease of understanding the tracebacks by converting everything to a generic RuntimeError, and we're hurting the UX of descriptor validation cases like this one."

    https://github.com/python/cpython/blob/master/Objects/typeobject.c#L7263

  2. carljm commented on May 19, 2018

    @carljm
    MemberAuthor

    Oops, duplicate of bpo-33576.

  3. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.8 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions