diff options
author | Raymond Hettinger <python@rcn.com> | 2014-07-03 00:30:52 +0100 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-07-03 00:30:52 +0100 |
commit | 809b665b57edccde6418fb9e4a0135a1e629e79a (patch) | |
tree | fad6e8ca32c8795f45ccb896e24dc48ca8902915 /Lib | |
parent | f6b3c84a4ab592602745d072423ff4d6b8e6a39d (diff) | |
download | cpython-git-809b665b57edccde6418fb9e4a0135a1e629e79a.tar.gz |
Fix guidance for subclassing collections.Set()
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/_abcoll.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index a943263320..3d567e388e 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py @@ -143,7 +143,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. """ |