]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bug #1389673: document correct return value of set methods (backport)
authorGeorg Brandl <georg@python.org>
Mon, 26 Dec 2005 23:56:08 +0000 (23:56 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 26 Dec 2005 23:56:08 +0000 (23:56 +0000)
Doc/lib/libstdtypes.tex

index fa3bd5f72d8ff2fb173a62f4ad706be6ea371d2b..cc31e86a691ac74aff3e3e42c468869b205d82f3 100644 (file)
@@ -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})}{}