From 33f38a09c9ef6320ba94711e1521a005bf1c54e1 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Fri, 8 May 2026 08:11:58 +0300 Subject: [PATCH] gh-149083: Convert `_initial_missing` for pure py `reduce` to `sentinel` --- Lib/functools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/functools.py b/Lib/functools.py index cd374631f16792..e03a77f204b544 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -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): """