Skip to content
Prev Previous commit
Next Next commit
back to note
  • Loading branch information
gpshead authored Jun 24, 2023
commit 9aa6924c2c093d759a71f8d715eac7b4ae53317e
4 changes: 2 additions & 2 deletions Doc/c-api/dict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Dictionary Objects
Return the object from dictionary *p* which has a key *key*. Return ``NULL``
if the key *key* is not present, but *without* setting an exception.

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

Exceptions that occur while this calls :meth:`~object.__hash__` and
:meth:`~object.__eq__` methods are silently ignored.
Expand All @@ -122,7 +122,7 @@ Dictionary Objects
This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a
:c:expr:`const char*`, rather than a :c:expr:`PyObject*`.

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

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