GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Outdated PyObject_HasAttr documentation (Exception behavior) · Issue #125887 · python/cpython

Outdated PyObject_HasAttr documentation (Exception behavior) #125887

New issue
Copy link
New issue
Copy link
Closed
#125907
Closed
Outdated PyObject_HasAttr documentation (Exception behavior)#125887
#125907
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc direasytopic-C-API

Description

@sklam
sklam
opened on Oct 23, 2024
Issue body actions

Documentation

In Python 3.13, PyObject_HasAttr doc says:

Exceptions that occur when this calls __getattr__() and __getattribute__() methods are silently ignored.

But its exception behavior after #106674 is to report all exceptions other than AttributeError.

Linked PRs

  • gh-125887: Update PyObject_HasAttr exception behavior #125907
  • [3.13] gh-125887: Update PyObject_HasAttr exception behavior (GH-125907) #128283

Activity

  1. sklam
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Oct 23, 2024
  2. ZeroIntensity
    added
    topic-C-API
    easy
    on Oct 23, 2024
  3. ZeroIntensity commented on Oct 23, 2024

    @ZeroIntensity
    ZeroIntensity
    on Oct 23, 2024
    Member
    More actions

    Well, it doesn't "report" exceptions, it displays an unraisable error. But yeah, I wouldn't call that silent. I guess it should be changed to something like "Exceptions that occur when this calls __getattr__() and __getattribute__() methods aren't propagated, but instead given to sys.unraisablehook." PR is welcome :)

  4. willingc
    added this to docs issueson Oct 31, 2024
  5. github-project-automation
    moved this to Todo in docs issueson Oct 31, 2024
  6. hauntsaninja
    added a commit that references this issue on Dec 27, 2024

    gh-125887: Update PyObject_HasAttr exception behavior (#125907)

    08a0728
  7. hauntsaninja
    closed this as completedin #125907on Dec 27, 2024
  8. miss-islington
    added a commit that references this issue on Dec 27, 2024

    pythongh-125887: Update PyObject_HasAttr exception behavior (pythonGH…

    4d3bf50
  9. hauntsaninja
    added a commit that references this issue on Dec 27, 2024

    [3.13] gh-125887: Update PyObject_HasAttr exception behavior (GH-125907…

    bad6b7b
  10. srinivasreddy
    added a commit that references this issue on Jan 8, 2025

    pythongh-125887: Update PyObject_HasAttr exception behavior (python#1…

    2e71d5d
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

    docsDocumentation in the Doc dirDocumentation in the Doc direasytopic-C-API

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.