Add documentation for the StopIteration exception.

This commit is contained in:
Fred Drake 2001-05-03 04:30:45 +00:00
parent 287c4cb43a
commit 9cfe1824c2

View 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