[Python-checkins] python/dist/src/Doc/ref ref3.tex,1.125,1.126
rhettinger@users.sourceforge.net
rhettinger at users.sourceforge.net
Sun Aug 21 13:26:25 CEST 2005
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32229
Modified Files:
ref3.tex
Log Message:
SF bug #1249837: container methods raise KeyError not IndexError
Minor clarification.
Index: ref3.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- ref3.tex 2 Jul 2005 10:27:31 -0000 1.125
+++ ref3.tex 21 Aug 2005 11:26:14 -0000 1.126
@@ -1658,6 +1658,8 @@
raised; if of a value outside the set of indexes for the sequence
(after any special interpretation of negative values),
\exception{IndexError} should be raised.
+For mapping types, if \var{key} is missing (not in the container),
+\exception{KeyError} should be raised.
\note{\keyword{for} loops expect that an
\exception{IndexError} will be raised for illegal indexes to allow
proper detection of the end of the sequence.}
More information about the Python-checkins
mailing list