mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +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, ...)
|
||||
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
|
||||
Accepts multiple input iterables.
|
||||
|
@ -1687,7 +1687,7 @@ The constructors for both classes work the same:
|
|||
.. method:: intersection(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
|
||||
Accepts multiple input iterables.
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
#
|
||||
# 01/2009, Georg Brandl
|
||||
|
||||
# TODO: - wrong versions in versionadded/changed
|
||||
# - wrong markup after versionchanged directive
|
||||
|
||||
from __future__ import with_statement
|
||||
|
||||
import os
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue