[Python-checkins] commit of r41827 - python/trunk/Doc/lib/libstdtypes.tex
reinhold.birkenfeld
python-checkins at python.org
Tue Dec 27 00:55:57 CET 2005
Author: reinhold.birkenfeld
Date: Tue Dec 27 00:55:56 2005
New Revision: 41827
Modified:
python/trunk/Doc/lib/libstdtypes.tex
Log:
Bug #1389673: document correct return value of set methods
Modified: python/trunk/Doc/lib/libstdtypes.tex
==============================================================================
--- python/trunk/Doc/lib/libstdtypes.tex (original)
+++ python/trunk/Doc/lib/libstdtypes.tex Tue Dec 27 00:55:56 2005
@@ -1261,17 +1261,17 @@
\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})}{}
More information about the Python-checkins
mailing list