Skip to content

Commit 4f18999

Browse files
authored
Merge pull request mattharrison#11 from MareinK/patch-1
Fix error about strict sub- and supersets
2 parents 24d79ee + 91492e3 commit 4f18999

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ Sets are useful because they provide *set operations*, such as union
685685
``s == s2`` ``__eq__`` Equality. Sets are equal or not equal
686686
``"{}".format(s)`` ``__format__`` String format of set
687687
``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``).
689689
No hash ``__hash__`` Set to ``None`` to ensure you can't insert in dictionary
690690
``s &= s2`` ``__iand__`` Augmented (mutates ``s``) intersection (see ``.intersection_update``)
691691
``s |= s2`` ``__ior__`` Augmented (mutates ``s``) union (see ``.update``)
@@ -694,7 +694,7 @@ Sets are useful because they provide *set operations*, such as union
694694
``s ^= s2`` ``__ixor__`` Augmented (mutates ``s``) xor (see ``.symmetric_difference_update``)
695695
``s <= s2`` ``__le__`` ``s2`` in ``s`` (see ``.issubset``)
696696
``len(s)`` ``__len__`` Length
697-
``s < s2`` ``__lt__`` Less than. Always ``False``
697+
``s < s2`` ``__lt__`` Strict subset (``s <= s2`` but ``s != s2``).
698698
``s != s2`` ``__ne__`` Not equal
699699
``s | s2`` ``__or__`` Set union (see ``.union``)
700700
``foo & s`` ``__rand__`` Called if ``foo`` doesn't implement ``__and__``

0 commit comments

Comments
 (0)