Skip to content

Commit bc8cf07

Browse files
authored
gh-149083: Convert _initial_missing for pure py reduce to sentinel (#149536)
1 parent 354ef33 commit bc8cf07

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)