]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The general iteration support is part of 2.2, not 2.1 -- fixed the version
authorFred Drake <fdrake@acm.org>
Thu, 3 May 2001 04:39:10 +0000 (04:39 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 3 May 2001 04:39:10 +0000 (04:39 +0000)
annotations!

Also fixed a typo noted by Neil S.

Doc/lib/libexcs.tex
Doc/lib/libstdtypes.tex

index eb043fcaba91925fe5eb18d1d73f8349460850a1..7e34bd0a3611205cda2bf22b3f60e69e3fe04456 100644 (file)
@@ -243,6 +243,7 @@ Raised when an \keyword{assert} statement fails.
   This is derived from \exception{Exception} rather than
   \exception{StandardError}, since this is not considered an error in
   its normal application.
+  \versionadded{2.2}
 \end{excdesc}
 
 \begin{excdesc}{SyntaxError}
index 69f10d39c72baecafcbb5dba65788163b5163cb3..da8e61fac346a7e90e10d4b5d16a7dad07b7468c 100644 (file)
@@ -315,7 +315,7 @@ division by \code{pow(2, \var{n})} without overflow check.
 
 \subsection{Iterator Types \label{typeiter}}
 
-\versionadded{2.1}
+\versionadded{2.2}
 \index{iterator protocol}
 \index{protocol!iterator}
 \index{sequence!iteration}
@@ -351,7 +351,7 @@ two methods, which together form the \dfn{iterator protocol}:
   the Python/C API.
 \end{methoddesc}
 
-\begin{methoddesc}[iteratpr]{next}{}
+\begin{methoddesc}[iterator]{next}{}
   Return the next item from the container.  If there are no further
   items, raise the \exception{StopIteration} exception.  This method
   corresponds to the \member{tp_iternext} slot of the type structure