]> granicus.if.org Git - python/commitdiff
Fix-up doc for itertools.repeat(). A -1 translates to zero repetitions, not infinite...
authorRaymond Hettinger <python@rcn.com>
Mon, 1 Jun 2009 19:16:52 +0000 (19:16 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 1 Jun 2009 19:16:52 +0000 (19:16 +0000)
Doc/library/itertools.rst

index e6a9fe2e71a196ff45d0315e7b494e98d64c5023..7baa5e10de65137e3632f93f68fbe045f6098045 100644 (file)
@@ -459,7 +459,7 @@ loops that truncate the stream.
                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