[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex, 1.177, 1.178

rhettinger@users.sourceforge.net rhettinger at users.sourceforge.net
Fri May 27 12:43:57 CEST 2005

Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19557

Modified Files:
Log Message:
SF bug #1209671:  dict.popitem documentation should mention empty dict case

Index: libstdtypes.tex
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.177
retrieving revision 1.178
diff -u -d -r1.177 -r1.178
--- libstdtypes.tex	19 Apr 2005 04:29:44 -0000	1.177
+++ libstdtypes.tex	27 May 2005 10:43:55 -0000	1.178
@@ -1398,7 +1398,8 @@
 the dictionary as the value of \var{k}. \var{x} defaults to \var{None}.
 \item[(6)] \function{popitem()} is useful to destructively iterate
-over a dictionary, as often used in set algorithms.
+over a dictionary, as often used in set algorithms.  If the dictionary
+is empty, calling \function{popitem()} raises a \exception{KeyError}.
 \item[(7)] \function{fromkeys()} is a class method that returns a
 new dictionary. \var{value} defaults to \code{None}.  \versionadded{2.3}

More information about the Python-checkins mailing list