]> granicus.if.org Git - python/commitdiff
Issue #28104: More accurately document set method signatures
authorRaymond Hettinger <python@rcn.com>
Tue, 13 Sep 2016 06:43:03 +0000 (23:43 -0700)
committerRaymond Hettinger <python@rcn.com>
Tue, 13 Sep 2016 06:43:03 +0000 (23:43 -0700)
Doc/library/stdtypes.rst

index 51539294b85472cb34041a53fdef05df6da0e55b..60c570b7c12e879a42dadc1a349abab65da306e6 100644 (file)
@@ -1874,7 +1874,7 @@ The constructors for both classes work the same:
       Test whether the set is a proper superset of *other*, that is, ``set >=
       other and set != other``.
 
-   .. method:: union(other, ...)
+   .. method:: union(*others)
                set | other | ...
 
       Return a new set with elements from the set and all others.
@@ -1882,7 +1882,7 @@ The constructors for both classes work the same:
       .. versionchanged:: 2.6
          Accepts multiple input iterables.
 
-   .. method:: intersection(other, ...)
+   .. method:: intersection(*others)
                set & other & ...
 
       Return a new set with elements common to the set and all others.
@@ -1890,7 +1890,7 @@ The constructors for both classes work the same:
       .. versionchanged:: 2.6
          Accepts multiple input iterables.
 
-   .. method:: difference(other, ...)
+   .. method:: difference(*others)
                set - other - ...
 
       Return a new set with elements in the set that are not in the others.
@@ -1944,7 +1944,7 @@ The constructors for both classes work the same:
    The following table lists operations available for :class:`set` that do not
    apply to immutable instances of :class:`frozenset`:
 
-   .. method:: update(other, ...)
+   .. method:: update(*others)
                set |= other | ...
 
       Update the set, adding elements from all others.
@@ -1952,7 +1952,7 @@ The constructors for both classes work the same:
       .. versionchanged:: 2.6
          Accepts multiple input iterables.
 
-   .. method:: intersection_update(other, ...)
+   .. method:: intersection_update(*others)
                set &= other & ...
 
       Update the set, keeping only elements found in it and all others.
@@ -1960,7 +1960,7 @@ The constructors for both classes work the same:
       .. versionchanged:: 2.6
          Accepts multiple input iterables.
 
-   .. method:: difference_update(other, ...)
+   .. method:: difference_update(*others)
                set -= other | ...
 
       Update the set, removing elements found in others.