SF bug #681003: itertools issues

* Fixed typo in exception message for times()
* Filled in missing times_traverse()
* Document reasons that imap() did not adopt a None fill-in feature
* Document that count(sys.maxint) will wrap-around on overflow
* Add overflow test to islice()
* Check that starmap()'s argument returns a tuple
* Verify that imap()'s tuple re-use is safe
* Make a similar tuple re-use (with safety check) for izip()
This commit is contained in:
Raymond Hettinger 2003-02-07 05:32:58 +00:00
parent 2b09bc4d57
commit 2012f174ea
3 changed files with 91 additions and 6 deletions

View file

@ -82,6 +82,10 @@ by functions or loops that truncate the stream.
yield cnt
cnt += 1
\end{verbatim}
Note, \function{count()} does not check for overflow and will return
negative numbers after exceeding \code{sys.maxint}. This behavior
may change in the future.
\end{funcdesc}
\begin{funcdesc}{dropwhile}{predicate, iterable}