[Python-checkins] r73459 - python/trunk/Doc/library/itertools.rst
raymond.hettinger
python-checkins at python.org
Wed Jun 17 03:43:48 CEST 2009
Author: raymond.hettinger
Date: Wed Jun 17 03:43:47 2009
New Revision: 73459
Log:
Add usage note.
Modified:
python/trunk/Doc/library/itertools.rst
Modified: python/trunk/Doc/library/itertools.rst
==============================================================================
--- python/trunk/Doc/library/itertools.rst (original)
+++ python/trunk/Doc/library/itertools.rst Wed Jun 17 03:43:47 2009
@@ -245,6 +245,10 @@
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.
More information about the Python-checkins
mailing list