[Python-checkins] r73111 - python/branches/py3k/Doc/library/itertools.rst
raymond.hettinger
python-checkins at python.org
Mon Jun 1 21:16:52 CEST 2009
Author: raymond.hettinger
Date: Mon Jun 1 21:16:52 2009
New Revision: 73111
Log:
Fix-up doc for itertools.repeat(). A -1 translates to zero repetitions, not infinite repetitions. This matches the behavior of ['x']*n.
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 Mon Jun 1 21:16:52 2009
@@ -459,7 +459,7 @@
yield tuple(prod)
-.. function:: repeat(object, times=-1)
+.. function:: repeat(object[, times])
Make an iterator that returns *object* over and over again. Runs indefinitely
unless the *times* argument is specified. Used as argument to :func:`map` for
More information about the Python-checkins
mailing list