summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-11-02 20:06:17 (GMT)
committerGeorg Brandl <georg@python.org>2007-11-02 20:06:17 (GMT)
commit7c3e79f67f6191fb500144db1d484d8bb8619f5a (patch)
tree36ae7c99ee5a7d66b8145f9005237e5897aae2d3 /Doc/c-api
parent03fd077482fd5d88a40a8f0d04e0566b9738098a (diff)
downloadcpython-7c3e79f67f6191fb500144db1d484d8bb8619f5a.zip
cpython-7c3e79f67f6191fb500144db1d484d8bb8619f5a.tar.gz
cpython-7c3e79f67f6191fb500144db1d484d8bb8619f5a.tar.bz2
Make "hashable" a glossary entry and clarify docs on __cmp__, __eq__ and __hash__.
I hope the concept of hashability is better understandable now. Thanks to Tim Hatch for pointing out the flaws here.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/concrete.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/concrete.rst b/Doc/c-api/concrete.rst
index 209f3e6..a02332a 100644
--- a/Doc/c-api/concrete.rst
+++ b/Doc/c-api/concrete.rst
@@ -2231,8 +2231,8 @@ Dictionary Objects
.. cfunction:: int PyDict_SetItem(PyObject *p, PyObject *key, PyObject *val)
Insert *value* into the dictionary *p* with a key of *key*. *key* must be
- hashable; if it isn't, :exc:`TypeError` will be raised. Return ``0`` on success
- or ``-1`` on failure.
+ :term:`hashable`; if it isn't, :exc:`TypeError` will be raised. Return ``0``
+ on success or ``-1`` on failure.
.. cfunction:: int PyDict_SetItemString(PyObject *p, const char *key, PyObject *val)