Skip to content

Fix hasattr's exception problems #46449

@benjaminp

Description

@benjaminp
BPO 2196
Nosy @brettcannon, @birkenfeld, @benjaminp
Files
  • hasattr_fixes.diff: Let's hasattr propagate exceptions (with tests)
  • hasattr_docs.diff: Documentation for hasattr and exceptions
  • hasattr_fixes-good-indentation.diff: Lets hasattr propagate exceptions (with tests and proper indentation)
  • hasattr_fixes2.diff: Anything which doesn't inherit Exception goes
  • hasattr_fixes2-real.diff: Real patch for hasattr_fixes2
  • 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/birkenfeld'
    closed_at = <Date 2008-05-12.00:41:47.228>
    created_at = <Date 2008-02-26.22:51:54.721>
    labels = ['interpreter-core', 'type-bug', 'tests', 'docs']
    title = "Fix hasattr's exception problems"
    updated_at = <Date 2008-05-12.00:41:47.130>
    user = 'https://github.com/benjaminp'

    bugs.python.org fields:

    activity = <Date 2008-05-12.00:41:47.130>
    actor = 'benjamin.peterson'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2008-05-12.00:41:47.228>
    closer = 'benjamin.peterson'
    components = ['Documentation', 'Interpreter Core', 'Tests']
    creation = <Date 2008-02-26.22:51:54.721>
    creator = 'benjamin.peterson'
    dependencies = []
    files = ['9563', '9567', '9576', '9630', '9631']
    hgrepos = []
    issue_num = 2196
    keywords = ['patch']
    message_count = 12.0
    messages = ['63055', '63112', '63138', '63147', '63151', '63341', '63350', '63366', '63367', '63996', '63999', '66693']
    nosy_count = 4.0
    nosy_names = ['brett.cannon', 'georg.brandl', '_doublep', 'benjamin.peterson']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2196'
    versions = ['Python 2.6']

    Metadata

    Metadata

    Assignees

    Labels

    docsDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions