]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-149083: Use `sentinel` in `functools.rst` docs (#149176)
authorsobolevn <mail@sobolevn.me>
Thu, 30 Apr 2026 16:18:56 +0000 (19:18 +0300)
committerGitHub <noreply@github.com>
Thu, 30 Apr 2026 16:18:56 +0000 (19:18 +0300)
Doc/library/functools.rst

index 265610db3caabd5ffc19d87aa688bbf90e989af6..7da59cba5170b35b0a0f6fa77fff39c08c8d4dc5 100644 (file)
@@ -468,7 +468,7 @@ The :mod:`!functools` module defines the following functions:
 
    Roughly equivalent to::
 
-      initial_missing = object()
+      initial_missing = sentinel('initial_missing')
 
       def reduce(function, iterable, /, initial=initial_missing):
           it = iter(iterable)