mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
gh-149083: Use sentinel in functools.rst docs (#149176)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user