diff options
author | Raymond Hettinger <python@rcn.com> | 2016-09-13 06:39:05 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-09-13 06:39:05 (GMT) |
commit | dcbed36e718a9359f5fae34b2d8a287bd9435b9a (patch) | |
tree | 5b7794aec0f3e56255f321629b08fbcae2a06097 | |
parent | 2f76b5694db14b06cc20c09001732d05d4a7e1d2 (diff) | |
parent | a33e9f704735d356a0fac2a77ba44dd9b0a05c63 (diff) | |
download | cpython-dcbed36e718a9359f5fae34b2d8a287bd9435b9a.zip cpython-dcbed36e718a9359f5fae34b2d8a287bd9435b9a.tar.gz cpython-dcbed36e718a9359f5fae34b2d8a287bd9435b9a.tar.bz2 |
merge
-rw-r--r-- | Doc/library/stdtypes.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 214422d..ec0ace8 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -3875,17 +3875,17 @@ 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. - .. method:: intersection(other, ...) + .. method:: intersection(*others) set & other & ... Return a new set with elements common to the set and all others. - .. method:: difference(other, ...) + .. method:: difference(*others) set - other - ... Return a new set with elements in the set that are not in the others. @@ -3935,17 +3935,17 @@ 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. - .. method:: intersection_update(other, ...) + .. method:: intersection_update(*others) set &= other & ... Update the set, keeping only elements found in it and all others. - .. method:: difference_update(other, ...) + .. method:: difference_update(*others) set -= other | ... Update the set, removing elements found in others. |