Skip to content

Outdated PyObject_HasAttr documentation (Exception behavior) #125887

Description

@sklam

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

Activity

  1. added
    docsDocumentation in the Doc dir
    on Oct 23, 2024
  2. ZeroIntensity commented on Oct 23, 2024

    @ZeroIntensity
    Member

    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 :)

  3. added a commit that references this issue on Dec 27, 2024
  4. added a commit that references this issue on Dec 27, 2024
  5. added a commit that references this issue on Dec 27, 2024
  6. added a commit that references this issue on Jan 8, 2025
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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions