From: Fred Drake Date: Thu, 3 May 2001 04:30:45 +0000 (+0000) Subject: Add documentation for the StopIteration exception. X-Git-Tag: v2.2a3~1926 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cfe1824c2cf2eb3592e13d1f3ac140cd0279cdf;p=python Add documentation for the StopIteration exception. --- diff --git a/Doc/lib/libexcs.tex b/Doc/lib/libexcs.tex index 30b4ef5164..eb043fcaba 100644 --- a/Doc/lib/libexcs.tex +++ b/Doc/lib/libexcs.tex @@ -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