diff options
author | Raymond Hettinger <python@rcn.com> | 2009-06-17 01:43:47 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-06-17 01:43:47 (GMT) |
commit | 3a02624059871dda84c376a94f01a20af5391d2b (patch) | |
tree | a6ed1c331883344362263373892b85752acdc923 /Doc | |
parent | bf9ec9ba674c5fe3409b235bd66e9e87fc0bf65c (diff) | |
download | cpython-3a02624059871dda84c376a94f01a20af5391d2b.zip cpython-3a02624059871dda84c376a94f01a20af5391d2b.tar.gz cpython-3a02624059871dda84c376a94f01a20af5391d2b.tar.bz2 |
Add usage note.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/itertools.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 918918c..eb6306f 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -245,6 +245,10 @@ loops that truncate the stream. yield n n += step + When counting with floating point numbers, better accuracy can sometimes be + achieved by substituting multiplicative code such as: ``(start + step * i + for i in count())``. + .. versionchanged:: 2.7 added *step* argument and allowed non-integer arguments. |