From 9cfe1824c2cf2eb3592e13d1f3ac140cd0279cdf Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 3 May 2001 04:30:45 +0000 Subject: Add documentation for the StopIteration exception. --- Doc/lib/libexcs.tex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/lib/libexcs.tex b/Doc/lib/libexcs.tex index 30b4ef5..eb043fc 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 -- cgit v0.12