René's URL Explorer Experiment


Title: gh-148829: Add PySentinel_CheckExact() by scoder · Pull Request #149725 · python/cpython · GitHub

Open Graph Title: gh-148829: Add PySentinel_CheckExact() by scoder · Pull Request #149725 · python/cpython

X Title: gh-148829: Add PySentinel_CheckExact() by scoder · Pull Request #149725 · python/cpython

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

Open Graph Description: As suggested in https://discuss.python.org/t/pep-661-sentinel-values/9126/343, this PR adds a PySentinel_CheckExact() C macro and makes PySentinel_Check() an alias, which can change if/when we allo...

X Description: As suggested in https://discuss.python.org/t/pep-661-sentinel-values/9126/343, this PR adds a PySentinel_CheckExact() C macro and makes PySentinel_Check() an alias, which can change if/when we allo...

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

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:193402c8-1b6a-3686-a5b4-33d2208e90a3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE98E:62F48:15ABE12:1C7FAFF:6B022F05
html-safe-nonce267c288c79e21a7c24737dc5e6889cf84d69faa2b7b7a1553d52f54a3e6d972d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOThFOjYyRjQ4OjE1QUJFMTI6MUM3RkFGRjo2QjAyMkYwNSIsInZpc2l0b3JfaWQiOiI2OTc2Nzg5MDcyNjMxMTgxMDYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac42eab434e9c4a21a8d4fc57c8de7e691748e3ca03c62c28a17f72e9a8d3a6a6a
hovercard-subject-tagpull_request:3669596585
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/149725/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/17f31d042e340c981400a0d802c489aa7cbd4859898bf024903890cfbbbcd967/python/cpython/pull/149725
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/17f31d042e340c981400a0d802c489aa7cbd4859898bf024903890cfbbbcd967/python/cpython/pull/149725
og:image:altAs suggested in https://discuss.python.org/t/pep-661-sentinel-values/9126/343, this PR adds a PySentinel_CheckExact() C macro and makes PySentinel_Check() an alias, which can change if/when we allo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamescoder
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-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/149725#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149725
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%2F149725
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/149725
Reloadhttps://github.com/python/cpython/pull/149725
Reloadhttps://github.com/python/cpython/pull/149725
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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
scoder:pysentinel_checkexacthttps://github.com/scoder/cpython/tree/pysentinel_checkexact
Conversationhttps://github.com/python/cpython/pull/149725
Commits5 (5)https://github.com/python/cpython/pull/149725/commits
Checkshttps://github.com/python/cpython/pull/149725/checks
Files changedhttps://github.com/python/cpython/pull/149725/files
gh-148829: Add PySentinel_CheckExact()https://github.com/python/cpython/pull/149725#top
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
scoder:pysentinel_checkexacthttps://github.com/scoder/cpython/tree/pysentinel_checkexact
https://github.com/scoder
scoderhttps://github.com/scoder
May 12, 2026https://github.com/python/cpython/pull/149725#issue-4430159210
Please reload this pagehttps://github.com/python/cpython/pull/149725
https://discuss.python.org/t/pep-661-sentinel-values/9126/343https://discuss.python.org/t/pep-661-sentinel-values/9126/343
Implement PEP 661 Sentinel Values #148829https://github.com/python/cpython/issues/148829
Please reload this pagehttps://github.com/python/cpython/pull/149725
https://github.com/scoder
Add PySentinel_CheckExact().https://github.com/python/cpython/pull/149725/commits/28ca03f72b03bb01fe41d451604a91d9c2182749
28ca03fhttps://github.com/python/cpython/pull/149725/commits/28ca03f72b03bb01fe41d451604a91d9c2182749
https://github.com/scoder
scoderhttps://github.com/scoder
ZeroIntensityhttps://github.com/ZeroIntensity
code ownerhttps://github.com/python/cpython/blob/0534774a472424f6b9be2dc4ce9784384bc02401/.github/CODEOWNERS#L114
May 12, 2026 14:52https://github.com/python/cpython/pull/149725#event-25436002954
https://github.com/scoder
scoderhttps://github.com/scoder
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
May 12, 2026https://github.com/python/cpython/pull/149725#event-25436006121
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 12, 2026 https://github.com/python/cpython/pull/149725#ref-issue-4302987764
Implement PEP 661 Sentinel Values #148829 https://github.com/python/cpython/issues/148829
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 12, 2026https://github.com/python/cpython/pull/149725#event-25436014155
https://github.com/scoder
scoderhttps://github.com/scoder
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
May 12, 2026https://github.com/python/cpython/pull/149725#event-25436027712
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
May 12, 2026https://github.com/python/cpython/pull/149725#issuecomment-4431772686
Please reload this pagehttps://github.com/python/cpython/pull/149725
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#32670091https://app.readthedocs.org/projects/cpython-previews/builds/32670091/
03f28f7https://github.com/python/cpython/commit/03f28f7e56c0776c28df88f43a0b1d2141184ea8
mainhttps://cpython-previews.readthedocs.io/en/main/
0534774https://github.com/python/cpython/commit/0534774a472424f6b9be2dc4ce9784384bc02401
  🔍 Preview build   https://cpython-previews--149725.org.readthedocs.build/en/149725/
c-api/sentinel.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/c-api/sentinel.html
deprecations/index.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/deprecations/index.html
deprecations/pending-removal-in-3.16.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/deprecations/pending-removal-in-3.16.html
library/base64.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/library/base64.html
library/binascii.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/library/binascii.html
library/dataclasses.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/library/dataclasses.html
library/inspect.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/library/inspect.html
library/mimetypes.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/library/mimetypes.html
library/stdtypes.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/library/stdtypes.html
library/sys.htmlhttps://cpython-previews--149725.org.readthedocs.build/en/149725/library/sys.html
Please reload this pagehttps://github.com/python/cpython/pull/149725
https://github.com/scoder
scoderhttps://github.com/scoder
May 12, 2026https://github.com/python/cpython/pull/149725#issuecomment-4431774461
Please reload this pagehttps://github.com/python/cpython/pull/149725
https://github.com/scoder
scoderhttps://github.com/scoder
May 12, 2026https://github.com/python/cpython/pull/149725#issuecomment-4431784001
@vstinnerhttps://github.com/vstinner
@JelleZijlstrahttps://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/cpython/pull/149725
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 12, 2026https://github.com/python/cpython/pull/149725#issuecomment-4432274041
Please reload this pagehttps://github.com/python/cpython/pull/149725
https://github.com/scoder
Add NEWS entry.https://github.com/python/cpython/pull/149725/commits/60e8ab71f99fc4abdde9c73f401f2231757b6007
60e8ab7https://github.com/python/cpython/pull/149725/commits/60e8ab71f99fc4abdde9c73f401f2231757b6007
https://github.com/scoder
scoderhttps://github.com/scoder
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
May 12, 2026https://github.com/python/cpython/pull/149725#event-25443544498
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
May 12, 2026 https://github.com/python/cpython/pull/149725#pullrequestreview-4275359485
View reviewed changes https://github.com/python/cpython/pull/149725/files/60e8ab71f99fc4abdde9c73f401f2231757b6007
Misc/NEWS.d/next/C_API/2026-05-12-16-47-21.gh-issue-149725.HZLBTZ.rsthttps://github.com/python/cpython/pull/149725/files/60e8ab71f99fc4abdde9c73f401f2231757b6007#diff-9374e5e50fa7f75bc0c0d906ee02fc8c0a7f0b0e596610ab6b963c61c07e5992
Please reload this pagehttps://github.com/python/cpython/pull/149725
Doc/c-api/sentinel.rsthttps://github.com/python/cpython/pull/149725/files/60e8ab71f99fc4abdde9c73f401f2231757b6007#diff-a80e1bfdfa74271861563e4d27187df17ff81ae053340ae704cbc14d59737658
Please reload this pagehttps://github.com/python/cpython/pull/149725
Doc/c-api/sentinel.rsthttps://github.com/python/cpython/pull/149725/files/60e8ab71f99fc4abdde9c73f401f2231757b6007#diff-a80e1bfdfa74271861563e4d27187df17ff81ae053340ae704cbc14d59737658
Please reload this pagehttps://github.com/python/cpython/pull/149725
Doc/c-api/sentinel.rsthttps://github.com/python/cpython/pull/149725/files/60e8ab71f99fc4abdde9c73f401f2231757b6007#diff-a80e1bfdfa74271861563e4d27187df17ff81ae053340ae704cbc14d59737658
Please reload this pagehttps://github.com/python/cpython/pull/149725
scoderhttps://github.com/scoder
May 12, 2026 21:21https://github.com/python/cpython/pull/149725#commits-pushed-090e023
https://github.com/scoder
Update documentation after code review.https://github.com/python/cpython/pull/149725/commits/090e023c207c70e18b92de5dbb38bc3a0969fe7e
090e023https://github.com/python/cpython/pull/149725/commits/090e023c207c70e18b92de5dbb38bc3a0969fe7e
https://github.com/scoder
Add missing EOL.https://github.com/python/cpython/pull/149725/commits/0fa965643ec567b1112a5eab1e61ea046380d2e3
0fa9656https://github.com/python/cpython/pull/149725/commits/0fa965643ec567b1112a5eab1e61ea046380d2e3
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
May 13, 2026 https://github.com/python/cpython/pull/149725#pullrequestreview-4280128808
View reviewed changes https://github.com/python/cpython/pull/149725/files/0fa965643ec567b1112a5eab1e61ea046380d2e3
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/149725#pullrequestreview-4280128808
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/149725
Doc/c-api/sentinel.rsthttps://github.com/python/cpython/pull/149725/files/0fa965643ec567b1112a5eab1e61ea046380d2e3#diff-a80e1bfdfa74271861563e4d27187df17ff81ae053340ae704cbc14d59737658
vstinnerhttps://github.com/vstinner
May 13, 2026https://github.com/python/cpython/pull/149725#discussion_r3232968136
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/149725
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 13, 2026https://github.com/python/cpython/pull/149725#event-25473931980
https://github.com/scoder
Docs: Add non-failure note to new functions.https://github.com/python/cpython/pull/149725/commits/03f28f7e56c0776c28df88f43a0b1d2141184ea8
03f28f7https://github.com/python/cpython/pull/149725/commits/03f28f7e56c0776c28df88f43a0b1d2141184ea8
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
May 13, 2026 09:44https://github.com/python/cpython/pull/149725#event-25474978892
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
94df625https://github.com/python/cpython/commit/94df62542cdf1c9eb082abab1534cbd1fd425062
May 13, 2026https://github.com/python/cpython/pull/149725#event-25476027788
Please reload this pagehttps://github.com/python/cpython/pull/149725
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
May 13, 2026https://github.com/python/cpython/pull/149725#issuecomment-4439795601
@scoderhttps://github.com/scoder
@vstinnerhttps://github.com/vstinner
Please reload this pagehttps://github.com/python/cpython/pull/149725
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 13, 2026https://github.com/python/cpython/pull/149725#event-25476030033
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 13, 2026https://github.com/python/cpython/pull/149725#issuecomment-4439797267
GH-149766https://github.com/python/cpython/pull/149766
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/149725
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 13, 2026https://github.com/python/cpython/pull/149725#event-25476039341
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
May 13, 2026https://github.com/python/cpython/pull/149725#issuecomment-4439892818
@scoderhttps://github.com/scoder
Please reload this pagehttps://github.com/python/cpython/pull/149725
vstinnerhttps://github.com/vstinner
May 13, 2026 https://github.com/python/cpython/pull/149725#ref-commit-a5f77a1
https://github.com/miss-islington
https://github.com/scoder
[3.15]https://github.com/python/cpython/commit/a5f77a13fdce49bcc6699ab4e7ec8b88e1d261af
gh-148829https://github.com/python/cpython/issues/148829
: Add PySentinel_CheckExact() (https://github.com/python/cpython/commit/a5f77a13fdce49bcc6699ab4e7ec8b88e1d261af
GH-149725https://github.com/python/cpython/pull/149725
) (https://github.com/python/cpython/commit/a5f77a13fdce49bcc6699ab4e7ec8b88e1d261af
#149766https://github.com/python/cpython/pull/149766
)https://github.com/python/cpython/commit/a5f77a13fdce49bcc6699ab4e7ec8b88e1d261af
a5f77a1https://github.com/python/cpython/commit/a5f77a13fdce49bcc6699ab4e7ec8b88e1d261af
gh-148829https://github.com/python/cpython/issues/148829
GH-149725https://github.com/python/cpython/pull/149725
94df625https://github.com/python/cpython/commit/94df62542cdf1c9eb082abab1534cbd1fd425062
https://github.com/scoder
scoderhttps://github.com/scoder
May 13, 2026 12:16https://github.com/python/cpython/pull/149725#event-25480708938
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%2F149725
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/149725/files/60e8ab71f99fc4abdde9c73f401f2231757b6007
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/149725/files/0fa965643ec567b1112a5eab1e61ea046380d2e3
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
Please reload this pagehttps://github.com/python/cpython/pull/149725
Please reload this pagehttps://github.com/python/cpython/pull/149725
https://github.com/scoder
https://github.com/JelleZijlstra
https://github.com/vstinner
https://github.com/StanFromIreland
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.