Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated PyObject_HasAttr documentation (Exception behavior) #125887

Open
sklam opened this issue Oct 23, 2024 · 1 comment
Open

Outdated PyObject_HasAttr documentation (Exception behavior) #125887

sklam opened this issue Oct 23, 2024 · 1 comment
Labels
docs Documentation in the Doc dir easy topic-C-API

Comments

@sklam
Copy link

sklam commented Oct 23, 2024

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.

@sklam sklam added the docs Documentation in the Doc dir label Oct 23, 2024
@ZeroIntensity
Copy link
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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir easy topic-C-API
Projects
None yet
Development

No branches or pull requests

2 participants