From 5bc472a9a429ff051df9415e7a61046bcd78eb51 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 17 Jun 2009 01:40:52 +0000 Subject: Add usage note. --- Doc/library/itertools.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 7baa5e1..ac3b761 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -235,6 +235,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:: 3.1 added *step* argument and allowed non-integer arguments. -- cgit v0.12