https://github.com/python/cpython/commit/bf424816d0643a4c4566f2e33dc4e1beb5ec875c
commit: bf424816d0643a4c4566f2e33dc4e1beb5ec875c
branch: main
author: sobolevn <[email protected]>
committer: sobolevn <[email protected]>
date: 2026-04-30T19:18:56+03:00
summary:
gh-149083: Use `sentinel` in `functools.rst` docs (#149176)
files:
M Doc/library/functools.rst
diff --git a/Doc/library/functools.rst b/Doc/library/functools.rst
index 265610db3caabd..7da59cba5170b3 100644
--- a/Doc/library/functools.rst
+++ b/Doc/library/functools.rst
@@ -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)
_______________________________________________
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]