Skip to content

Commit e3d59bf

Browse files
sobolevnmiss-islington
authored andcommitted
gh-149083: Convert _initial_missing for pure py reduce to sentinel (GH-149536)
(cherry picked from commit bc8cf07) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 2b1eed4 commit e3d59bf

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)