https://github.com/python/cpython/commit/a84e2dba24286d9cf13c29807d6994a13dc102a1
commit: a84e2dba24286d9cf13c29807d6994a13dc102a1
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: rhettinger <[email protected]>
date: 2026-04-08T17:55:20Z
summary:

[3.14] Minor edit: Four space indent in example (gh-148264) (gh-148265)

files:
M Doc/library/itertools.rst

diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index 53f4b31e17d52b..1be8406bbdf0c1 100644
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -853,7 +853,7 @@ and :term:`generators <generator>` which incur interpreter 
overhead.
 
    def running_mean(iterable):
        "Yield the average of all values seen so far."
-       # running_mean([8.5, 9.5, 7.5, 6.5]) -> 8.5 9.0 8.5 8.0
+       # running_mean([8.5, 9.5, 7.5, 6.5]) → 8.5 9.0 8.5 8.0
        return map(truediv, accumulate(iterable), count(1))
 
    def repeatfunc(function, times=None, *args):
@@ -935,10 +935,10 @@ and :term:`generators <generator>` which incur 
interpreter overhead.
                    yield element
 
    def unique(iterable, key=None, reverse=False):
-      "Yield unique elements in sorted order. Supports unhashable inputs."
-      # unique([[1, 2], [3, 4], [1, 2]]) → [1, 2] [3, 4]
-      sequenced = sorted(iterable, key=key, reverse=reverse)
-      return unique_justseen(sequenced, key=key)
+       "Yield unique elements in sorted order. Supports unhashable inputs."
+       # unique([[1, 2], [3, 4], [1, 2]]) → [1, 2] [3, 4]
+       sequenced = sorted(iterable, key=key, reverse=reverse)
+       return unique_justseen(sequenced, key=key)
 
    def sliding_window(iterable, n):
        "Collect data into overlapping fixed-length chunks or blocks."

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to