summaryrefslogtreecommitdiff
path: root/Doc/c-api
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-02-14 02:47:49 -0800
committerGitHub <noreply@github.com>2023-02-14 02:47:49 -0800
commitbc3718eb4b6defcdffb23b0c6f5879c5e721609a (patch)
treebb2ed8e9bac7da477e790882a0abbd9432f13157 /Doc/c-api
parent59852bbcc38ed4b5d6da7208e0e6b96456028523 (diff)
downloadcpython-git-bc3718eb4b6defcdffb23b0c6f5879c5e721609a.tar.gz
GH-101898: Fix missing term references for hashable definition (GH-101899)
Fix missing term references for hashable definition (cherry picked from commit 3690688149dca11589af59b7704541336613199a) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/dict.rst2
-rw-r--r--Doc/c-api/object.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst
index 819168d487..be7b5f1352 100644
--- a/Doc/c-api/dict.rst
+++ b/Doc/c-api/dict.rst
@@ -80,7 +80,7 @@ Dictionary Objects
.. c:function:: int PyDict_DelItem(PyObject *p, PyObject *key)
- Remove the entry in dictionary *p* with key *key*. *key* must be hashable;
+ Remove the entry in dictionary *p* with key *key*. *key* must be :term:`hashable`;
if it isn't, :exc:`TypeError` is raised.
If *key* is not in the dictionary, :exc:`KeyError` is raised.
Return ``0`` on success or ``-1`` on failure.
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index eef42ca132..feadf50320 100644
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -263,7 +263,7 @@ Object Protocol
.. c:function:: Py_hash_t PyObject_HashNotImplemented(PyObject *o)
- Set a :exc:`TypeError` indicating that ``type(o)`` is not hashable and return ``-1``.
+ Set a :exc:`TypeError` indicating that ``type(o)`` is not :term:`hashable` and return ``-1``.
This function receives special treatment when stored in a ``tp_hash`` slot,
allowing a type to explicitly indicate to the interpreter that it is not
hashable.