summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-12-26 23:55:56 (GMT)
committerGeorg Brandl <georg@python.org>2005-12-26 23:55:56 (GMT)
commit75400db251f54090a7fc22817f7bbc54f968f4ec (patch)
treedab193fa66035a46de46cb0e0a6672b9c69da2c7 /Doc/lib
parent6c1908d55632288e5ca54c7eb1f92f6befb30d8b (diff)
downloadcpython-75400db251f54090a7fc22817f7bbc54f968f4ec.zip
cpython-75400db251f54090a7fc22817f7bbc54f968f4ec.tar.gz
cpython-75400db251f54090a7fc22817f7bbc54f968f4ec.tar.bz2
Bug #1389673: document correct return value of set methods
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libstdtypes.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index c0069e1..bf96a19 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -1261,17 +1261,17 @@ that do not apply to immutable instances of \class{frozenset}:
\begin{tableiii}{c|c|l}{code}{Operation}{Equivalent}{Result}
\lineiii{\var{s}.update(\var{t})}
{\var{s} |= \var{t}}
- {return set \var{s} with elements added from \var{t}}
+ {update set \var{s}, adding elements from \var{t}}
\lineiii{\var{s}.intersection_update(\var{t})}
{\var{s} \&= \var{t}}
- {return set \var{s} keeping only elements also found in \var{t}}
+ {update set \var{s}, keeping only elements found in both \var{s} and \var{t}}
\lineiii{\var{s}.difference_update(\var{t})}
{\var{s} -= \var{t}}
- {return set \var{s} after removing elements found in \var{t}}
+ {update set \var{s}, removing elements found in \var{t}}
\lineiii{\var{s}.symmetric_difference_update(\var{t})}
{\var{s} \textasciicircum= \var{t}}
- {return set \var{s} with elements from \var{s} or \var{t}
- but not both}
+ {update set \var{s}, keeping only elements found in either \var{s} or \var{t}
+ but not in both}
\hline
\lineiii{\var{s}.add(\var{x})}{}