mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
#4976: union() and intersection() take multiple args, but talk about "the other".
This commit is contained in:
parent
6ab22154dd
commit
6c81b54cc4
2 changed files with 5 additions and 2 deletions
|
@ -1679,7 +1679,7 @@ The constructors for both classes work the same:
|
||||||
.. method:: union(other, ...)
|
.. method:: union(other, ...)
|
||||||
set | other | ...
|
set | other | ...
|
||||||
|
|
||||||
Return a new set with elements from both sets.
|
Return a new set with elements from the set and all others.
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
.. versionchanged:: 2.6
|
||||||
Accepts multiple input iterables.
|
Accepts multiple input iterables.
|
||||||
|
@ -1687,7 +1687,7 @@ The constructors for both classes work the same:
|
||||||
.. method:: intersection(other, ...)
|
.. method:: intersection(other, ...)
|
||||||
set & other & ...
|
set & other & ...
|
||||||
|
|
||||||
Return a new set with elements common to both sets.
|
Return a new set with elements common to the set and all others.
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
.. versionchanged:: 2.6
|
||||||
Accepts multiple input iterables.
|
Accepts multiple input iterables.
|
||||||
|
|
|
@ -6,6 +6,9 @@
|
||||||
#
|
#
|
||||||
# 01/2009, Georg Brandl
|
# 01/2009, Georg Brandl
|
||||||
|
|
||||||
|
# TODO: - wrong versions in versionadded/changed
|
||||||
|
# - wrong markup after versionchanged directive
|
||||||
|
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue