diff options
author | Raymond Hettinger <python@rcn.com> | 2014-07-02 23:30:52 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-07-02 23:30:52 (GMT) |
commit | 809b665b57edccde6418fb9e4a0135a1e629e79a (patch) | |
tree | fad6e8ca32c8795f45ccb896e24dc48ca8902915 /Doc | |
parent | f6b3c84a4ab592602745d072423ff4d6b8e6a39d (diff) | |
download | cpython-809b665b57edccde6418fb9e4a0135a1e629e79a.zip cpython-809b665b57edccde6418fb9e4a0135a1e629e79a.tar.gz cpython-809b665b57edccde6418fb9e4a0135a1e629e79a.tar.bz2 |
Fix guidance for subclassing collections.Set()
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/collections.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 5bb3569..f00b870 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -1028,7 +1028,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) |