Skip to content

Commit 33f38a0

Browse files
committed
gh-149083: Convert _initial_missing for pure py reduce to sentinel
1 parent 4ae1a26 commit 33f38a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def __ge__(self, other):
232232
### reduce() sequence to a single item
233233
################################################################################
234234

235-
_initial_missing = object()
235+
_initial_missing = sentinel('_initial_missing')
236236

237237
def reduce(function, sequence, initial=_initial_missing):
238238
"""

0 commit comments

Comments
 (0)