mirror of
https://github.com/python/cpython.git
synced 2026-06-05 17:31:21 +00:00
gh-149083: Convert _initial_missing for pure py reduce to sentinel (#149536)
This commit is contained in:
parent
354ef336e4
commit
bc8cf07d8d
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ def __ge__(self, other):
|
|||
### reduce() sequence to a single item
|
||||
################################################################################
|
||||
|
||||
_initial_missing = object()
|
||||
_initial_missing = sentinel('_initial_missing')
|
||||
|
||||
def reduce(function, sequence, /, initial=_initial_missing):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue