Skip to content

Commit 35cd409

Browse files
committed
Friendlier docstring
1 parent 97e4e8b commit 35cd409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/itertools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
860860
return chain([value], iterable)
861861

862862
def running_mean(iterable):
863-
"Yield the cumulative arithmetic mean."
863+
"Yield the average of all values seen so far."
864864
# running_mean([8.5, 9.5, 7.5, 7.0]) -> 8.5 9.0 8.5 8.0
865865
return map(truediv, accumulate(iterable), count(1))
866866

0 commit comments

Comments
 (0)