René's URL Explorer Experiment


Title: gh-149083: Convert `_initial_missing` for pure py `reduce` to `sentinel` by sobolevn · Pull Request #149536 · python/cpython · GitHub

Open Graph Title: gh-149083: Convert `_initial_missing` for pure py `reduce` to `sentinel` by sobolevn · Pull Request #149536 · python/cpython

X Title: gh-149083: Convert `_initial_missing` for pure py `reduce` to `sentinel` by sobolevn · Pull Request #149536 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This is not covered in #149084 Difference is not big, but noticable. Before: Notice the default parameter repr, which is rather unpretty. After: skip news, because there should be no user facing ...

X Description: This is not covered in #149084 Difference is not big, but noticable. Before: Notice the default parameter repr, which is rather unpretty. After: skip news, because there should be no user facing ...

Opengraph URL: https://github.com/python/cpython/pull/149536

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:d0c6a50e-9276-1cff-857f-29b3442474cd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF3E:8AE25:137C9A3:19D6371:6B01F304
html-safe-noncec3f461b211d2c22164bf97000c3edfe32430d6f05d19dc737636ee20edc2f09f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjNFOjhBRTI1OjEzN0M5QTM6MTlENjM3MTo2QjAxRjMwNCIsInZpc2l0b3JfaWQiOiI1OTEzNzYxNTk0MzA2ODUxNTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6647f83687771a61b0de2c118e25cd7c07600cf206ca38c002b3ca47908e2c79
hovercard-subject-tagpull_request:3647442258
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/149536/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/bad9635ee7ae71bb23f891b1f6b52dfcd1e2b4efa263f297ed1eef5f795b1f92/python/cpython/pull/149536
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bad9635ee7ae71bb23f891b1f6b52dfcd1e2b4efa263f297ed1eef5f795b1f92/python/cpython/pull/149536
og:image:altThis is not covered in #149084 Difference is not big, but noticable. Before: Notice the default parameter repr, which is rather unpretty. After: skip news, because there should be no user facing ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesobolevn
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/149536#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149536
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149536
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/149536
Reloadhttps://github.com/python/cpython/pull/149536
Reloadhttps://github.com/python/cpython/pull/149536
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
sobolevn:issue-149083-functoolshttps://github.com/sobolevn/cpython/tree/issue-149083-functools
Conversationhttps://github.com/python/cpython/pull/149536
Commits1 (1)https://github.com/python/cpython/pull/149536/commits
Checkshttps://github.com/python/cpython/pull/149536/checks
Files changedhttps://github.com/python/cpython/pull/149536/files
gh-149083: Convert _initial_missing for pure py reduce to sentinelhttps://github.com/python/cpython/pull/149536#top
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
sobolevn:issue-149083-functoolshttps://github.com/sobolevn/cpython/tree/issue-149083-functools
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
May 8, 2026https://github.com/python/cpython/pull/149536#issue-4403947523
Please reload this pagehttps://github.com/python/cpython/pull/149536
#149084https://github.com/python/cpython/pull/149084
https://private-user-images.githubusercontent.com/4660275/589350064-de3af5af-bcb2-4266-8ac2-6902ab51cb6c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyOTAxNjAsIm5iZiI6MTc5NTI4OTg2MCwicGF0aCI6Ii80NjYwMjc1LzU4OTM1MDA2NC1kZTNhZjVhZi1iY2IyLTQyNjYtOGFjMi02OTAyYWI1MWNiNmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjFUMTkzNzQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjRhMjMxZTU1ZWYyZjg1MjBjZDk2NDM2NjM0Nzk4ZjAyMThkZDZmMTc1ZTUyOTYyOTUwY2Q2MjcxYmU3Mzg0YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.PDqy4hOwdZqU-hhhRPxPCxjI3tjUOC9FWvsuDGu-V9I
https://private-user-images.githubusercontent.com/4660275/589350460-7ecd61b1-8bfe-45bc-a0e0-09bab7a1462d.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyOTAxNjAsIm5iZiI6MTc5NTI4OTg2MCwicGF0aCI6Ii80NjYwMjc1LzU4OTM1MDQ2MC03ZWNkNjFiMS04YmZlLTQ1YmMtYTBlMC0wOWJhYjdhMTQ2MmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjFUMTkzNzQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTExZGZlNjQ1NDVkMjNkN2RkMWQxZDBiMDc0NDU0YjJlOTJhOWYwNWVkYTEwZmY5NThlNjFmZDI5MGQ5YzVmNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.Q7iQM47w1We-LfS-X61AaJcwsIm6OAMIiwbJ4qoghpc
Use PEP 661 (sentinels) in the standard library #149083https://github.com/python/cpython/issues/149083
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/sobolevn
pythongh-149083https://github.com/python/cpython/issues/149083
: Converthttps://github.com/python/cpython/pull/149536/commits/33f38a09c9ef6320ba94711e1521a005bf1c54e1
_initial_missinghttps://github.com/python/cpython/pull/149536/commits/33f38a09c9ef6320ba94711e1521a005bf1c54e1
for pure pyhttps://github.com/python/cpython/pull/149536/commits/33f38a09c9ef6320ba94711e1521a005bf1c54e1
reducehttps://github.com/python/cpython/pull/149536/commits/33f38a09c9ef6320ba94711e1521a005bf1c54e1
to `…https://github.com/python/cpython/pull/149536/commits/33f38a09c9ef6320ba94711e1521a005bf1c54e1
33f38a0https://github.com/python/cpython/pull/149536/commits/33f38a09c9ef6320ba94711e1521a005bf1c54e1
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
JelleZijlstrahttps://github.com/JelleZijlstra
May 8, 2026 05:14https://github.com/python/cpython/pull/149536#event-25291497456
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
rhettingerhttps://github.com/rhettinger
code ownerhttps://github.com/python/cpython/blob/4ae1a260c7dbada6db099d3335a784b5aae91723/.github/CODEOWNERS#L476
May 8, 2026 05:14https://github.com/python/cpython/pull/149536#event-25291497746
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
May 8, 2026https://github.com/python/cpython/pull/149536#event-25291498030
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 8, 2026https://github.com/python/cpython/pull/149536#event-25291500441
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 8, 2026 https://github.com/python/cpython/pull/149536#ref-issue-4340199889
Use PEP 661 (sentinels) in the standard library #149083 https://github.com/python/cpython/issues/149083
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 8, 2026 https://github.com/python/cpython/pull/149536#pullrequestreview-4249694682
View reviewed changes https://github.com/python/cpython/pull/149536/files/33f38a09c9ef6320ba94711e1521a005bf1c54e1
JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/python/cpython/pull/149536#pullrequestreview-4249694682
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 8, 2026https://github.com/python/cpython/pull/149536#event-25291728482
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
May 8, 2026https://github.com/python/cpython/pull/149536#issuecomment-4403695176
@hugovkhttps://github.com/hugovk
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
May 8, 2026https://github.com/python/cpython/pull/149536#issuecomment-4404219961
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
May 8, 2026https://github.com/python/cpython/pull/149536#issuecomment-4404340485
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
May 8, 2026https://github.com/python/cpython/pull/149536#issuecomment-4405082248
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
May 8, 2026 https://github.com/python/cpython/pull/149536#pullrequestreview-4250908695
View reviewed changes https://github.com/python/cpython/pull/149536/files/33f38a09c9ef6320ba94711e1521a005bf1c54e1
Lib/functools.pyhttps://github.com/python/cpython/pull/149536/files/33f38a09c9ef6320ba94711e1521a005bf1c54e1#diff-8657d1a12c81ea9da8c75d3de3827fc6f1e033339453e9587f1ec2f5dfc5111d
skirpichevhttps://github.com/skirpichev
May 8, 2026https://github.com/python/cpython/pull/149536#discussion_r3207534949
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/149536
sobolevnhttps://github.com/sobolevn
May 8, 2026https://github.com/python/cpython/pull/149536#discussion_r3208557568
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/hugovk
hugovkhttps://github.com/hugovk
May 8, 2026https://github.com/python/cpython/pull/149536#issuecomment-4408987840
@hugovkhttps://github.com/hugovk
Please reload this pagehttps://github.com/python/cpython/pull/149536
skirpichevhttps://github.com/skirpichev
May 9, 2026 https://github.com/python/cpython/pull/149536#ref-commit-bbae869
https://github.com/skirpichev
pythongh-149536https://github.com/python/cpython/pull/149536
: use sentinel to fix _functools.reduce() signaturehttps://github.com/skirpichev/cpython/commit/bbae869b11b84c1deeaf5e850204710af4ce1b2f
bbae869https://github.com/skirpichev/cpython/commit/bbae869b11b84c1deeaf5e850204710af4ce1b2f
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
May 9, 2026https://github.com/python/cpython/pull/149536#event-25334894048
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
bc8cf07https://github.com/python/cpython/commit/bc8cf07d8dbb4341955dc85d9b2bf273ec5852c7
May 9, 2026https://github.com/python/cpython/pull/149536#event-25334901146
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
May 9, 2026https://github.com/python/cpython/pull/149536#event-25334901808
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
May 9, 2026https://github.com/python/cpython/pull/149536#issuecomment-4411963222
@sobolevnhttps://github.com/sobolevn
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 9, 2026https://github.com/python/cpython/pull/149536#issuecomment-4411963798
GH-149592https://github.com/python/cpython/pull/149592
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
May 9, 2026https://github.com/python/cpython/pull/149536#event-25334905623
sobolevnhttps://github.com/sobolevn
May 9, 2026 https://github.com/python/cpython/pull/149536#ref-commit-915b6c1
https://github.com/miss-islington
https://github.com/sobolevn
[3.15]https://github.com/python/cpython/commit/915b6c1572285f2bd469be177fe523eca52951f1
gh-149083https://github.com/python/cpython/issues/149083
: Converthttps://github.com/python/cpython/commit/915b6c1572285f2bd469be177fe523eca52951f1
_initial_missinghttps://github.com/python/cpython/commit/915b6c1572285f2bd469be177fe523eca52951f1
for pure pyhttps://github.com/python/cpython/commit/915b6c1572285f2bd469be177fe523eca52951f1
reducehttps://github.com/python/cpython/commit/915b6c1572285f2bd469be177fe523eca52951f1
to …https://github.com/python/cpython/commit/915b6c1572285f2bd469be177fe523eca52951f1
915b6c1https://github.com/python/cpython/commit/915b6c1572285f2bd469be177fe523eca52951f1
GH-149536https://github.com/python/cpython/pull/149536
#149592https://github.com/python/cpython/pull/149592
gh-149083https://github.com/python/cpython/issues/149083
GH-149536https://github.com/python/cpython/pull/149536
bc8cf07https://github.com/python/cpython/commit/bc8cf07d8dbb4341955dc85d9b2bf273ec5852c7
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149536
https://github.com/skirpichev
skirpichev https://github.com/skirpichev
https://github.com/python/cpython/pull/149536/files/33f38a09c9ef6320ba94711e1521a005bf1c54e1
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/cpython/pull/149536/files/33f38a09c9ef6320ba94711e1521a005bf1c54e1
https://github.com/rhettinger
rhettinger https://github.com/rhettinger
Please reload this pagehttps://github.com/python/cpython/pull/149536
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/149536
https://github.com/sobolevn
https://github.com/skirpichev
https://github.com/hugovk
https://github.com/JelleZijlstra
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.