René's URL Explorer Experiment


Title: Use PEP 661 (sentinels) in the standard library · Issue #149083 · python/cpython · GitHub

Open Graph Title: Use PEP 661 (sentinels) in the standard library · Issue #149083 · python/cpython

X Title: Use PEP 661 (sentinels) in the standard library · Issue #149083 · python/cpython

Description: Feature or enhancement Proposal: I just merged support for PEP-661, which adds the new sentinel() builtin. Let's use it in the standard library so we can simplify some code and stress-test the feature. We'll have to be careful to preserv...

Open Graph Description: Feature or enhancement Proposal: I just merged support for PEP-661, which adds the new sentinel() builtin. Let's use it in the standard library so we can simplify some code and stress-test the feat...

X Description: Feature or enhancement Proposal: I just merged support for PEP-661, which adds the new sentinel() builtin. Let's use it in the standard library so we can simplify some code and stress-test the ...

Opengraph URL: https://github.com/python/cpython/issues/149083

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use PEP 661 (sentinels) in the standard library","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nI just merged support for PEP-661, which adds the new `sentinel()` builtin. Let's use it in the standard library so we can simplify some code and stress-test the feature.\n\nWe'll have to be careful to preserve compatibility with features such as `repr()` and boolean values.\n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-149084\n* gh-149086\n* gh-149088\n* gh-149176\n* gh-149213\n* gh-149536\n* gh-149591\n* gh-149592\n* gh-149612\n* gh-149613\n* gh-149653\n* gh-151017\n* gh-155919\n* gh-155927\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2026-04-28T02:42:44Z","url":"https://github.com/python/cpython/issues/149083"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:05bd0e37-042c-8299-460f-687122d516a4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2DE:3DA1E8:1361728:19B9A57:6B01F349
html-safe-noncead2594330ac366abaa71c2f7438a2f1fc8489d9718d835537ee7891aad30385d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkRFOjNEQTFFODoxMzYxNzI4OjE5QjlBNTc6NkIwMUYzNDkiLCJ2aXNpdG9yX2lkIjoiNzkyNjcxMzM4ODk4ODc1NjgwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacda8a6c52b48d38c155f9fa06fa2152d1118203cc292e3f2a2594a05972667e3e
hovercard-subject-tagissue:4340199889
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/149083/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bcb3256861a5d255e53183992848dfe0ec76951e053450ca35a12777163f972a/python/cpython/issues/149083
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bcb3256861a5d255e53183992848dfe0ec76951e053450ca35a12777163f972a/python/cpython/issues/149083
og:image:altFeature or enhancement Proposal: I just merged support for PEP-661, which adds the new sentinel() builtin. Let's use it in the standard library so we can simplify some code and stress-test the feat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJelleZijlstra
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/149083#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F149083
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%2Fissues%2F149083
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/149083
Reloadhttps://github.com/python/cpython/issues/149083
Reloadhttps://github.com/python/cpython/issues/149083
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/149083
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/149083
Use PEP 661 (sentinels) in the standard libraryhttps://github.com/python/cpython/issues/149083#top
https://github.com/JelleZijlstra
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-refactorCode refactoring (with no changes in behavior)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-refactor%22
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Apr 28, 2026https://github.com/python/cpython/issues/149083#issue-4340199889
PEP-661https://peps.python.org/661
gh-149083: Convert some private and simple sentinels to PEP 661 #149084https://github.com/python/cpython/pull/149084
gh-149083: Convert dataclasses.MISSING and dataclasses.KW_ONLY to sentinels #149086https://github.com/python/cpython/pull/149086
gh-149083: Make functools.Placeholder a sentinel #149088https://github.com/python/cpython/pull/149088
gh-149083: Use sentinel in functools.rst docs #149176https://github.com/python/cpython/pull/149176
gh-149083: Change several other docs examples to use sentinel() #149213https://github.com/python/cpython/pull/149213
gh-149083: Convert _initial_missing for pure py reduce to sentinel #149536https://github.com/python/cpython/pull/149536
gh-149083: use sentinel to fix _functools.reduce() signature #149591https://github.com/python/cpython/pull/149591
[3.15] gh-149083: Convert _initial_missing for pure py reduce to sentinel (GH-149536) #149592https://github.com/python/cpython/pull/149592
gh-149083: Use sentinel for urllib.parse._UNSPECIFIED #149612https://github.com/python/cpython/pull/149612
gh-149083: Use sentinel for os.path.{ALLOW_MISSING,ALL_BUT_LAST} #149613https://github.com/python/cpython/pull/149613
[3.15] gh-149083: use sentinel to fix _functools.reduce() signature (GH-149591) #149653https://github.com/python/cpython/pull/149653
[3.15] gh-149083: Use sentinel for urllib.parse._UNSPECIFIED (GH-149612) #151017https://github.com/python/cpython/pull/151017
gh-149083: Document that dataclasses.MISSING and KW_ONLY are sentinels #155919https://github.com/python/cpython/pull/155919
[3.15] gh-149083: Document that dataclasses.MISSING and KW_ONLY are sentinels (GH-155919) #155927https://github.com/python/cpython/pull/155927
JelleZijlstrahttps://github.com/JelleZijlstra
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
on Apr 28, 2026https://github.com/python/cpython/issues/149083#event-24930548249
JelleZijlstrahttps://github.com/JelleZijlstra
on Apr 28, 2026https://github.com/python/cpython/issues/149083#event-24930549352
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Apr 28, 2026https://github.com/python/cpython/issues/149083#issuecomment-4332107508
1ce5c13https://github.com/python/cpython/commit/1ce5c13cee2d0d431d19b0e3e2a86d6f42113fd4
StanFromIrelandhttps://github.com/StanFromIreland
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-refactorCode refactoring (with no changes in behavior)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-refactor%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
on Apr 28, 2026https://github.com/python/cpython/issues/149083#event-24935769346
JelleZijlstrahttps://github.com/JelleZijlstra
on Apr 30, 2026https://github.com/python/cpython/issues/149083#event-25016463821
gh-149083: Convert dataclasses.MISSING and dataclasses.KW_ONLY to sen…https://github.com/python/cpython/commit/16952218d0535904236e8a39851133688c9ce1f0
gh-149083https://github.com/python/cpython/issues/149083
1695221https://github.com/python/cpython/commit/16952218d0535904236e8a39851133688c9ce1f0
sobolevnhttps://github.com/sobolevn
on Apr 30, 2026https://github.com/python/cpython/issues/149083#event-25042420967
gh-149083: Use `sentinel` in `functools.rst` docs (#149176)https://github.com/python/cpython/commit/bf424816d0643a4c4566f2e33dc4e1beb5ec875c
gh-149083https://github.com/python/cpython/issues/149083
#149176https://github.com/python/cpython/pull/149176
bf42481https://github.com/python/cpython/commit/bf424816d0643a4c4566f2e33dc4e1beb5ec875c
pythongh-149083: Change several other docs examples to use `sentinel()`https://github.com/sobolevn/cpython/commit/9dd34920e9b7c72938e4070efc1f4b7ba9cff1fd
pythongh-149083https://github.com/python/cpython/issues/149083
9dd3492https://github.com/sobolevn/cpython/commit/9dd34920e9b7c72938e4070efc1f4b7ba9cff1fd
gh-149083: Change several other docs examples to use `sentinel()` (#1…https://github.com/python/cpython/commit/690e0de70671a07eba705156508a49c609f44bb1
gh-149083https://github.com/python/cpython/issues/149083
#1…https://github.com/python/cpython/pull/149213
690e0dehttps://github.com/python/cpython/commit/690e0de70671a07eba705156508a49c609f44bb1
sobolevnhttps://github.com/sobolevn
on May 9, 2026https://github.com/python/cpython/issues/149083#event-25334901381
gh-149083: Convert `_initial_missing` for pure py `reduce` to `sentin…https://github.com/python/cpython/commit/bc8cf07d8dbb4341955dc85d9b2bf273ec5852c7
gh-149083https://github.com/python/cpython/issues/149083
bc8cf07https://github.com/python/cpython/commit/bc8cf07d8dbb4341955dc85d9b2bf273ec5852c7
[3.15] gh-149083: Convert `_initial_missing` for pure py `reduce` to …https://github.com/python/cpython/commit/915b6c1572285f2bd469be177fe523eca52951f1
gh-149083https://github.com/python/cpython/issues/149083
915b6c1https://github.com/python/cpython/commit/915b6c1572285f2bd469be177fe523eca52951f1
JelleZijlstrahttps://github.com/JelleZijlstra
on May 9, 2026https://github.com/python/cpython/issues/149083#event-25342376838
pythongh-149083: Use sentinel for os.path.{ALLOW_MISSING,ALL_BUT_LAST}https://github.com/JelleZijlstra/cpython/commit/20b62f771ff0e76c4cfec1993d7e573c53b3aaa8
pythongh-149083https://github.com/python/cpython/issues/149083
20b62f7https://github.com/JelleZijlstra/cpython/commit/20b62f771ff0e76c4cfec1993d7e573c53b3aaa8
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 9, 2026https://github.com/python/cpython/issues/149083#issuecomment-4413650843
JelleZijlstrahttps://github.com/JelleZijlstra
on May 10, 2026https://github.com/python/cpython/issues/149083#event-25359882697
gh-149083: use sentinel to fix _functools.reduce() signature (#149591)https://github.com/python/cpython/commit/c6fd7de64ac7591a9708c14a34737eb9baf050bc
gh-149083https://github.com/python/cpython/issues/149083
#149591https://github.com/python/cpython/pull/149591
c6fd7dehttps://github.com/python/cpython/commit/c6fd7de64ac7591a9708c14a34737eb9baf050bc
[3.15] gh-149083: use sentinel to fix _functools.reduce() signature (G…https://github.com/python/cpython/commit/73c80cb859589ef9e5871c30b17c951a44a26e33
gh-149083https://github.com/python/cpython/issues/149083
G…https://github.com/python/cpython/pull/149591
73c80cbhttps://github.com/python/cpython/commit/73c80cb859589ef9e5871c30b17c951a44a26e33
JelleZijlstrahttps://github.com/JelleZijlstra
on Jun 6, 2026https://github.com/python/cpython/issues/149083#event-26420404612
gh-149083: Use sentinel for urllib.parse._UNSPECIFIED (#149612)https://github.com/python/cpython/commit/884ac3e3ec02347301939ff1f124972d4973f015
gh-149083https://github.com/python/cpython/issues/149083
#149612https://github.com/python/cpython/pull/149612
884ac3ehttps://github.com/python/cpython/commit/884ac3e3ec02347301939ff1f124972d4973f015
[3.15] gh-149083: Use sentinel for urllib.parse._UNSPECIFIED (GH-149612…https://github.com/python/cpython/commit/9352936b4ec21a0237df09a8e416dca2401d7921
gh-149083https://github.com/python/cpython/issues/149083
GH-149612https://github.com/python/cpython/pull/149612
9352936https://github.com/python/cpython/commit/9352936b4ec21a0237df09a8e416dca2401d7921
philthompson10https://github.com/philthompson10
on Jun 17, 2026https://github.com/python/cpython/issues/149083#event-26873454676
pythongh-149083: Use sentinel for urllib.parse._UNSPECIFIED (python#1…https://github.com/philthompson10/cpython/commit/e4308c5fc79dd6522f457515c29b9ed603f12a68
pythongh-149083https://github.com/python/cpython/issues/149083
python#1…https://github.com/python/cpython/pull/149612
e4308c5https://github.com/philthompson10/cpython/commit/e4308c5fc79dd6522f457515c29b9ed603f12a68
hugovkhttps://github.com/hugovk
on Aug 17, 2026https://github.com/python/cpython/issues/149083#event-29540848323
gh-149083: Document that dataclasses.MISSING and KW_ONLY are sentinels (https://github.com/python/cpython/commit/e13c3d643e508f201a5bcd2e522d4acf6c93f4fe
gh-149083https://github.com/python/cpython/issues/149083
e13c3d6https://github.com/python/cpython/commit/e13c3d643e508f201a5bcd2e522d4acf6c93f4fe
[3.15] gh-149083: Document that dataclasses.MISSING and KW_ONLY are s…https://github.com/python/cpython/commit/ac4e5d2108ccc6c60bf836f39f7cfb3a91ef2c82
gh-149083https://github.com/python/cpython/issues/149083
ac4e5d2https://github.com/python/cpython/commit/ac4e5d2108ccc6c60bf836f39f7cfb3a91ef2c82
picnixzhttps://github.com/picnixz
on Nov 1, 2026https://github.com/python/cpython/issues/149083#event-34818684256
gh-149083: Make functools.Placeholder a sentinel (#149088)https://github.com/python/cpython/commit/ee074d18866d2cd4fa59801162774aaab8fdde8f
gh-149083https://github.com/python/cpython/issues/149083
#149088https://github.com/python/cpython/pull/149088
ee074d1https://github.com/python/cpython/commit/ee074d18866d2cd4fa59801162774aaab8fdde8f
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/149083
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/149083
JelleZijlstrahttps://github.com/JelleZijlstra
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-refactorCode refactoring (with no changes in behavior)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-refactor%22
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.