diff options
author | Raymond Hettinger <python@rcn.com> | 2014-07-02 23:31:30 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-07-02 23:31:30 (GMT) |
commit | 11cda4766108c3220402c5a430573a1288a1b4ac (patch) | |
tree | e1d4381e0efe4c93e3fb3356abec37b673c50ec0 /Lib | |
parent | 2dba23af7145f3edc608dc16209e6ead38c0f6c8 (diff) | |
download | cpython-11cda4766108c3220402c5a430573a1288a1b4ac.zip cpython-11cda4766108c3220402c5a430573a1288a1b4ac.tar.gz cpython-11cda4766108c3220402c5a430573a1288a1b4ac.tar.bz2 |
Fix guidance for subclassing collections.Set()
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/_collections_abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py index 656ae06..6477444 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. """ |