gh-149083: Convert _initial_missing for pure py reduce to sentinel (#149536)

This commit is contained in:
sobolevn 2026-05-09 10:55:09 +03:00 committed by GitHub
parent 354ef336e4
commit bc8cf07d8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):
"""