summaryrefslogtreecommitdiffstats
path: root/Doc/library/datetime.rst
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/library/datetime.rst
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/library/datetime.rst')
-rw-r--r--Doc/library/datetime.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 24d4f69..9442d29 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -262,7 +262,7 @@ compared to an object of a different type, :exc:`TypeError` is raised unless the
comparison is ``==`` or ``!=``. The latter cases return :const:`False` or
:const:`True`, respectively.
-:class:`timedelta` objects are hashable (usable as dictionary keys), support
+:class:`timedelta` objects are :term:`hashable` (usable as dictionary keys), support
efficient pickling, and in Boolean contexts, a :class:`timedelta` object is
considered to be true if and only if it isn't equal to ``timedelta(0)``.