Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bc8cf07

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

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/functools.py‎

Copy file name to clipboardExpand all lines: Lib/functools.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.