mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Add documentation for the StopIteration exception.
This commit is contained in:
parent
287c4cb43a
commit
9cfe1824c2
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue