commit | 809b665b57edccde6418fb9e4a0135a1e629e79a | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Jul 03 00:30:52 2014 +0100 |
committer | Raymond Hettinger <python@rcn.com> | Thu Jul 03 00:30:52 2014 +0100 |
tree | fad6e8ca32c8795f45ccb896e24dc48ca8902915 | |
parent | f6b3c84a4ab592602745d072423ff4d6b8e6a39d [diff] [blame] |
Fix guidance for subclassing collections.Set()
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index a943263..3d567e3 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py
@@ -143,7 +143,7 @@ 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. """