We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3be6f9 commit a34a709Copy full SHA for a34a709
Doc/c-api/object.rst
@@ -111,9 +111,8 @@ 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