Skip to content

Commit 7dcda9b

Browse files
authored
Merge pull request mattharrison#15 from unknownVS13/master
Update typos in "Set Methods"
2 parents 3f6c528 + 949438f commit 7dcda9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,9 @@ Sets are useful because they provide *set operations*, such as union
732732
``s.discard(item)`` Remove ``item`` from s (mutates ``s``). No error on missing ``item``
733733
``s.intersection(s2)`` Return set with elements from both sets
734734
``s.intersection_update(s2)`` Update ``s`` with members of ``s2`` (mutates ``s``)
735-
``s.isdisjoint(s2)`` ``True`` is there is no intersection
736-
``s.issubset(s2)`` All elements of ``s`` in ``s2``
737-
``s.issuperset(s2)`` All elements of ``s2`` in ``s2``
735+
``s.isdisjoint(s2)`` ``True`` if there is no intersection of these two sets
736+
``s.issubset(s2)`` ``True`` if all elements of ``s`` are in ``s2``
737+
``s.issuperset(s2)`` ``True`` if all elements of ``s2`` are in ``s``
738738
``s.pop()`` Remove arbitrary item from s (mutates ``s``). ``KeyError`` on missing ``item``
739739
``s.remove(item)`` Remove ``item`` from s (mutates ``s``). ``KeyError`` on missing ``item``
740740
``s.symmetric_difference(s2)`` Return set with elements only in one of the sets

0 commit comments

Comments
 (0)