]> granicus.if.org Git - python/commitdiff
Add documentation for the StopIteration exception.
authorFred Drake <fdrake@acm.org>
Thu, 3 May 2001 04:30:45 +0000 (04:30 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 3 May 2001 04:30:45 +0000 (04:30 +0000)
Doc/lib/libexcs.tex

index 30b4ef516467e7a6835e3f61e2e9284d7f763055..eb043fcaba91925fe5eb18d1d73f8349460850a1 100644 (file)
@@ -237,6 +237,14 @@ Raised when an \keyword{assert} statement fails.
   more.)
 \end{excdesc}
 
+\begin{excdesc}{StopIteration}
+  Raised by an iterator's \method{next()} method to signal that there
+  are no further values.
+  This is derived from \exception{Exception} rather than
+  \exception{StandardError}, since this is not considered an error in
+  its normal application.
+\end{excdesc}
+
 \begin{excdesc}{SyntaxError}
 % XXXJH xref to these functions?
   Raised when the parser encounters a syntax error.  This may occur in