mirror of https://github.com/python/cpython
Add usage note.
This commit is contained in:
parent
bf9ec9ba67
commit
3a02624059
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue