From: Raymond Hettinger Date: Wed, 17 Jun 2009 01:43:47 +0000 (+0000) Subject: Add usage note. X-Git-Tag: v2.7a1~938 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a02624059871dda84c376a94f01a20af5391d2b;p=python Add usage note. --- diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 918918cc94..eb6306ff2c 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.