[Python-checkins] python/dist/src/Doc/lib libstdtypes.tex, 1.170.2.7, 1.170.2.8
rhettinger@users.sourceforge.net
rhettinger at users.sourceforge.net
Fri May 27 12:45:17 CEST 2005
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19754
Modified Files:
Tag: release24-maint
libstdtypes.tex
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.170.2.7
retrieving revision 1.170.2.8
diff -u -d -r1.170.2.7 -r1.170.2.8
--- libstdtypes.tex 19 Apr 2005 04:31:38 -0000 1.170.2.7
+++ libstdtypes.tex 27 May 2005 10:45:14 -0000 1.170.2.8
@@ -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