Commit 3a026240 authored by Raymond Hettinger's avatar Raymond Hettinger

Add usage note.

parent bf9ec9ba
...@@ -245,6 +245,10 @@ loops that truncate the stream. ...@@ -245,6 +245,10 @@ loops that truncate the stream.
yield n yield n
n += step 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 .. versionchanged:: 2.7
added *step* argument and allowed non-integer arguments. added *step* argument and allowed non-integer arguments.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment