[Python-checkins] r73458 - python/branches/py3k/Doc/library/itertools.rst

raymond.hettinger python-checkins at python.org
Wed Jun 17 03:40:53 CEST 2009


Author: raymond.hettinger
Date: Wed Jun 17 03:40:52 2009
New Revision: 73458
Log:
Add usage note.
Modified:
 python/branches/py3k/Doc/library/itertools.rst
Modified: python/branches/py3k/Doc/library/itertools.rst
==============================================================================
--- python/branches/py3k/Doc/library/itertools.rst	(original)
+++ python/branches/py3k/Doc/library/itertools.rst	Wed Jun 17 03:40:52 2009
@@ -235,6 +235,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:: 3.1
 added *step* argument and allowed non-integer arguments.
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /