Skip to content
Prev Previous commit
back to note
  • Loading branch information
gpshead authored Jun 24, 2023
commit 76d43efa772eccfbc54d8b12f9ac90a181df5105
4 changes: 2 additions & 2 deletions Doc/c-api/object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Object Protocol
is equivalent to the Python expression ``hasattr(o, attr_name)``. This function
always succeeds.

.. caution::
.. note::
Comment thread
gpshead marked this conversation as resolved.

Exceptions that occur when this calls :meth:`~object.__getattr__` and
:meth:`~object.__getattribute__` methods are silently ignored.
Expand All @@ -46,7 +46,7 @@ Object Protocol
is equivalent to the Python expression ``hasattr(o, attr_name)``. This function
always succeeds.

.. caution::
.. note::
Comment thread
gpshead marked this conversation as resolved.

Exceptions that occur when this calls :meth:`~object.__getattr__` and
:meth:`~object.__getattribute__` methods or while creating the temporary :class:`str`
Expand Down