Skip to content

Commit a33e9f7

Browse files
committed
Issue #28104: More accurately document set method signatures
1 parent 529d130 commit a33e9f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/stdtypes.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3866,17 +3866,17 @@ The constructors for both classes work the same:
38663866
Test whether the set is a proper superset of *other*, that is, ``set >=
38673867
other and set != other``.
38683868

3869-
.. method:: union(other, ...)
3869+
.. method:: union(*others)
38703870
set | other | ...
38713871

38723872
Return a new set with elements from the set and all others.
38733873

3874-
.. method:: intersection(other, ...)
3874+
.. method:: intersection(*others)
38753875
set & other & ...
38763876

38773877
Return a new set with elements common to the set and all others.
38783878

3879-
.. method:: difference(other, ...)
3879+
.. method:: difference(*others)
38803880
set - other - ...
38813881

38823882
Return a new set with elements in the set that are not in the others.
@@ -3926,17 +3926,17 @@ The constructors for both classes work the same:
39263926
The following table lists operations available for :class:`set` that do not
39273927
apply to immutable instances of :class:`frozenset`:
39283928

3929-
.. method:: update(other, ...)
3929+
.. method:: update(*others)
39303930
set |= other | ...
39313931

39323932
Update the set, adding elements from all others.
39333933

3934-
.. method:: intersection_update(other, ...)
3934+
.. method:: intersection_update(*others)
39353935
set &= other & ...
39363936

39373937
Update the set, keeping only elements found in it and all others.
39383938

3939-
.. method:: difference_update(other, ...)
3939+
.. method:: difference_update(*others)
39403940
set -= other | ...
39413941

39423942
Update the set, removing elements found in others.

0 commit comments

Comments
 (0)