8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3be6f9 commit 7cf71eaCopy full SHA for 7cf71ea
Doc/c-api/object.rst
@@ -111,9 +111,9 @@ Object Protocol
111
.. note::
112
113
Exceptions that occur when this calls :meth:`~object.__getattr__` and
114
- :meth:`~object.__getattribute__` methods are silently ignored.
115
- For proper error handling, use :c:func:`PyObject_HasAttrWithError`,
116
- :c:func:`PyObject_GetOptionalAttr` or :c:func:`PyObject_GetAttr` instead.
+ :meth:`~object.__getattribute__` methods are aren't propagated,
+ but instead given to :func:`sys.unraisablehook`.
+.
117
118
119
.. c:function:: int PyObject_HasAttrString(PyObject *o, const char *attr_name)
0 commit comments