#4976: union() and intersection() take multiple args, but talk about "the other".

This commit is contained in:
Georg Brandl 2009-01-18 10:42:35 +00:00
parent 6ab22154dd
commit 6c81b54cc4
2 changed files with 5 additions and 2 deletions

View file

@ -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.

View file

@ -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