File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ Sets are useful because they provide *set operations*, such as union
685
685
``s == s2 `` ``__eq__ `` Equality. Sets are equal or not equal
686
686
``"{}".format(s) `` ``__format__ `` String format of set
687
687
``s >= s2 `` ``__ge__ `` ``s `` in ``s2 `` (see ``.issuperset ``)
688
- ``s > s2 `` ``__gt__ `` Greater. Always `` False` ``
688
+ ``s > s2 `` ``__gt__ `` Strict superset (`` s >= s2 `` but `` s != s2 ``).
689
689
No hash ``__hash__ `` Set to ``None `` to ensure you can't insert in dictionary
690
690
``s &= s2 `` ``__iand__ `` Augmented (mutates ``s ``) intersection (see ``.intersection_update ``)
691
691
``s |= s2 `` ``__ior__ `` Augmented (mutates ``s ``) union (see ``.update ``)
@@ -694,7 +694,7 @@ Sets are useful because they provide *set operations*, such as union
694
694
``s ^= s2 `` ``__ixor__ `` Augmented (mutates ``s ``) xor (see ``.symmetric_difference_update ``)
695
695
``s <= s2 `` ``__le__ `` ``s2 `` in ``s `` (see ``.issubset ``)
696
696
``len(s) `` ``__len__ `` Length
697
- ``s < s2 `` ``__lt__ `` Less than. Always `` False ``
697
+ ``s < s2 `` ``__lt__ `` Strict subset (`` s <= s2 `` but `` s != s2 ``).
698
698
``s != s2 `` ``__ne__ `` Not equal
699
699
``s | s2 `` ``__or__ `` Set union (see ``.union ``)
700
700
``foo & s `` ``__rand__ `` Called if ``foo `` doesn't implement ``__and__ ``
You can’t perform that action at this time.
0 commit comments