summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-07-02 23:31:54 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-07-02 23:31:54 (GMT)
commit748ff8bfd137a834056eb0cd3bfb1d5105c46522 (patch)
treeb7135fe92a31f91b26d684c07cef3f063b75f70d
parentb57d6a2fec3b0f2bb508ae3f3dcb9d6b54056fda (diff)
parent11cda4766108c3220402c5a430573a1288a1b4ac (diff)
downloadcpython-748ff8bfd137a834056eb0cd3bfb1d5105c46522.zip
cpython-748ff8bfd137a834056eb0cd3bfb1d5105c46522.tar.gz
cpython-748ff8bfd137a834056eb0cd3bfb1d5105c46522.tar.bz2
merge
-rw-r--r--Doc/library/collections.abc.rst2
-rw-r--r--Lib/_collections_abc.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst
index efa922b..5f7888a 100644
--- a/Doc/library/collections.abc.rst
+++ b/Doc/library/collections.abc.rst
@@ -173,7 +173,7 @@ Notes on using :class:`Set` and :class:`MutableSet` as a mixin:
(2)
To override the comparisons (presumably for speed, as the
- semantics are fixed), redefine :meth:`__le__` and
+ semantics are fixed), redefine :meth:`__le__` and :meth:`__ge__`,
then the other operations will automatically follow suit.
(3)
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py
index d9cb93a..6935e55 100644
--- a/Lib/_collections_abc.py
+++ b/Lib/_collections_abc.py
@@ -183,7 +183,7 @@ class Set(Sized, Iterable, Container):
methods except for __contains__, __iter__ and __len__.
To override the comparisons (presumably for speed, as the
- semantics are fixed), all you have to do is redefine __le__ and
+ semantics are fixed), redefine __le__ and __ge__,
then the other operations will automatically follow suit.
"""