diff options
author | Raymond Hettinger <python@rcn.com> | 2003-02-07 05:32:58 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-02-07 05:32:58 (GMT) |
commit | 2012f174ea305dfab6eefc35add748b87bb239ad (patch) | |
tree | 2afbed3905a5bdb5ed3596d4df42de1ff3cb0011 /Doc/lib/libitertools.tex | |
parent | 2b09bc4d571c29ff044d9170156a89e77adb8f61 (diff) | |
download | cpython-2012f174ea305dfab6eefc35add748b87bb239ad.zip cpython-2012f174ea305dfab6eefc35add748b87bb239ad.tar.gz cpython-2012f174ea305dfab6eefc35add748b87bb239ad.tar.bz2 |
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()
Diffstat (limited to 'Doc/lib/libitertools.tex')
-rw-r--r-- | Doc/lib/libitertools.tex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/lib/libitertools.tex b/Doc/lib/libitertools.tex index 5d49e66..8f6c655 100644 --- a/Doc/lib/libitertools.tex +++ b/Doc/lib/libitertools.tex @@ -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} |