René's URL Explorer Experiment


Title: gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse by serhiy-storchaka · Pull Request #132988 · python/cpython · GitHub

Open Graph Title: gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse by serhiy-storchaka · Pull Request #132988 · python/cpython

X Title: gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse by serhiy-storchaka · Pull Request #132988 · python/cpython

Description: Issue: gh-132987 📚 Documentation preview 📚: https://cpython-previews--132988.org.readthedocs.build/

Open Graph Description: Issue: gh-132987 📚 Documentation preview 📚: https://cpython-previews--132988.org.readthedocs.build/

X Description: Issue: gh-132987 📚 Documentation preview 📚: https://cpython-previews--132988.org.readthedocs.build/

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

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8f9c2a31-7375-9110-3643-30fb020ddd6d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA90C:D4E59:116444:15F89E:6B01E58D
html-safe-noncedf0fd019e13807bf789e8bb8b9f6bca8e90a3144e4c800671d4c5e0503beb270
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTBDOkQ0RTU5OjExNjQ0NDoxNUY4OUU6NkIwMUU1OEQiLCJ2aXNpdG9yX2lkIjoiMjMwMzA2NDMzODk2NzE2MDIwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5c6507cb42c77df6db280d2b16609dfdab8cbb2bf5df7c79923e3de1e28593c0
hovercard-subject-tagpull_request:2483003362
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/132988/files
twitter:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
og:image:altIssue: gh-132987 📚 Documentation preview 📚: https://cpython-previews--132988.org.readthedocs.build/
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/132988/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132988%2Ffiles
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%2F132988%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/132988/files
Reloadhttps://github.com/python/cpython/pull/132988/files
Reloadhttps://github.com/python/cpython/pull/132988/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:parse-arg-unsigned-int-indexhttps://github.com/serhiy-storchaka/cpython/tree/parse-arg-unsigned-int-index
Conversation 6 https://github.com/python/cpython/pull/132988
Commits 4 https://github.com/python/cpython/pull/132988/commits
Checks 0 https://github.com/python/cpython/pull/132988/checks
Files changed https://github.com/python/cpython/pull/132988/files
Please reload this pagehttps://github.com/python/cpython/pull/132988/files
gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse https://github.com/python/cpython/pull/132988/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/132988/files
8ac2dba gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse serhiy-storchaka Apr 26, 2025 https://github.com/python/cpython/pull/132988/commits/8ac2dba1528472d2b057ad1e0dc73782d6ad926e
209618e Fix test_clinic. serhiy-storchaka Apr 26, 2025 https://github.com/python/cpython/pull/132988/commits/209618e7054f1a72266449943e7736ccf31825b5
986c409 Apply suggestions from code review serhiy-storchaka Apr 26, 2025 https://github.com/python/cpython/pull/132988/commits/986c4099d905794b8eae1d0ec042e54a7631b462
80eb47c Update Misc/NEWS.d/next/C_API/2025-04-26-12-00-52.gh-issue-132987.vyk… serhiy-storchaka Apr 26, 2025 https://github.com/python/cpython/pull/132988/commits/80eb47cc36130bfb22fcac49ec74619c42617d72
Clear filters https://github.com/python/cpython/pull/132988/files
Please reload this pagehttps://github.com/python/cpython/pull/132988/files
Please reload this pagehttps://github.com/python/cpython/pull/132988/files
arg.rst https://github.com/python/cpython/pull/132988/files#diff-72042312d52057083557e42db0b8c2989bfc34c52b0d32e40e9daa5ebf12ea6e
3.14.rst https://github.com/python/cpython/pull/132988/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
clinic.test.c https://github.com/python/cpython/pull/132988/files#diff-32c3be496a0c496cd567de8c17ee74b48d717c19012e4859ccec9f96a97d2ab7
test_getargs.py https://github.com/python/cpython/pull/132988/files#diff-741c124883460390a6d87e7dff448145f6a03a05ebe8143dd0e98b7a94732e75
2025-04-26-12-00-52.gh-issue-132987.vykZGN.rst https://github.com/python/cpython/pull/132988/files#diff-ce1f51c85ae64ac4fb9f0348ba34b61830bcaaad275ac3fccba4a4d55b3e9f5b
_cursesmodule.c.h https://github.com/python/cpython/pull/132988/files#diff-3712cb338691dd25b68632e5dae69b904aff02ecc7348a2c792d4c0acf007d8a
_testclinic.c.h https://github.com/python/cpython/pull/132988/files#diff-a711b68a5645f52be0139e746f561116fb45db076883baf1d389d27cebfaad55
fcntlmodule.c.h https://github.com/python/cpython/pull/132988/files#diff-818f02c022684a1dd23bdcd28187fefa6bf0f160d4cf8143eb2d3f1b2d65bbf0
posixmodule.c.h https://github.com/python/cpython/pull/132988/files#diff-f4ec448d9bc73d373452e97931de916ca83058ae93bce4a5853b8ac18c9d2cfa
signalmodule.c.h https://github.com/python/cpython/pull/132988/files#diff-98f6708777483962e65a6b0f79f1bfdaff6108decf115a0d6052c7231c24b1a1
getargs.c https://github.com/python/cpython/pull/132988/files#diff-3a8078954be00d3c876e02dd0e5057aad07f2c5f82f6c3c76154dcf2866929cf
converters.py https://github.com/python/cpython/pull/132988/files#diff-6436ad1cc337847309d061b3e5a46466e5ad47ad5e6c2ffe9aef3f3ef3e30d7d
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L114
Doc/c-api/arg.rsthttps://github.com/python/cpython/pull/132988/files#diff-72042312d52057083557e42db0b8c2989bfc34c52b0d32e40e9daa5ebf12ea6e
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Doc/c-api/arg.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/132988/{{ revealButtonHref }}
https://github.com/python/cpython/pull/132988/files#diff-72042312d52057083557e42db0b8c2989bfc34c52b0d32e40e9daa5ebf12ea6e
https://github.com/python/cpython/pull/132988/files#diff-72042312d52057083557e42db0b8c2989bfc34c52b0d32e40e9daa5ebf12ea6e
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116
Doc/whatsnew/3.14.rsthttps://github.com/python/cpython/pull/132988/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Doc/whatsnew/3.14.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/132988/{{ revealButtonHref }}
https://github.com/python/cpython/pull/132988/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
https://github.com/python/cpython/pull/132988/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
Lib/test/clinic.test.chttps://github.com/python/cpython/pull/132988/files#diff-32c3be496a0c496cd567de8c17ee74b48d717c19012e4859ccec9f96a97d2ab7
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Lib/test/clinic.test.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/132988/{{ revealButtonHref }}
https://github.com/python/cpython/pull/132988/files#diff-32c3be496a0c496cd567de8c17ee74b48d717c19012e4859ccec9f96a97d2ab7
https://github.com/python/cpython/pull/132988/files#diff-32c3be496a0c496cd567de8c17ee74b48d717c19012e4859ccec9f96a97d2ab7
https://github.com/python/cpython/pull/132988/files#diff-32c3be496a0c496cd567de8c17ee74b48d717c19012e4859ccec9f96a97d2ab7
https://github.com/python/cpython/pull/132988/files#diff-32c3be496a0c496cd567de8c17ee74b48d717c19012e4859ccec9f96a97d2ab7
https://github.com/python/cpython/pull/132988/files#diff-32c3be496a0c496cd567de8c17ee74b48d717c19012e4859ccec9f96a97d2ab7
https://github.com/python/cpython/pull/132988/files#diff-32c3be496a0c496cd567de8c17ee74b48d717c19012e4859ccec9f96a97d2ab7
Lib/test/test_capi/test_getargs.pyhttps://github.com/python/cpython/pull/132988/files#diff-741c124883460390a6d87e7dff448145f6a03a05ebe8143dd0e98b7a94732e75
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Lib/test/test_capi/test_getargs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/132988/{{ revealButtonHref }}
https://github.com/python/cpython/pull/132988/files#diff-741c124883460390a6d87e7dff448145f6a03a05ebe8143dd0e98b7a94732e75
https://github.com/python/cpython/pull/132988/files#diff-741c124883460390a6d87e7dff448145f6a03a05ebe8143dd0e98b7a94732e75
https://github.com/python/cpython/pull/132988/files#diff-741c124883460390a6d87e7dff448145f6a03a05ebe8143dd0e98b7a94732e75
https://github.com/python/cpython/pull/132988/files#diff-741c124883460390a6d87e7dff448145f6a03a05ebe8143dd0e98b7a94732e75
https://github.com/python/cpython/pull/132988/files#diff-741c124883460390a6d87e7dff448145f6a03a05ebe8143dd0e98b7a94732e75
Misc/NEWS.d/next/C_API/2025-04-26-12-00-52.gh-issue-132987.vykZGN.rsthttps://github.com/python/cpython/pull/132988/files#diff-ce1f51c85ae64ac4fb9f0348ba34b61830bcaaad275ac3fccba4a4d55b3e9f5b
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Misc/NEWS.d/next/C_API/2025-04-26-12-00-52.gh-issue-132987.vykZGN.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/132988/{{ revealButtonHref }}
Modules/clinic/_cursesmodule.c.hhttps://github.com/python/cpython/pull/132988/files#diff-3712cb338691dd25b68632e5dae69b904aff02ecc7348a2c792d4c0acf007d8a
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Modules/clinic/_cursesmodule.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/132988/files
Modules/clinic/_testclinic.c.hhttps://github.com/python/cpython/pull/132988/files#diff-a711b68a5645f52be0139e746f561116fb45db076883baf1d389d27cebfaad55
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Modules/clinic/_testclinic.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/132988/files
Modules/clinic/fcntlmodule.c.hhttps://github.com/python/cpython/pull/132988/files#diff-818f02c022684a1dd23bdcd28187fefa6bf0f160d4cf8143eb2d3f1b2d65bbf0
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Modules/clinic/fcntlmodule.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/132988/files
Modules/clinic/posixmodule.c.hhttps://github.com/python/cpython/pull/132988/files#diff-f4ec448d9bc73d373452e97931de916ca83058ae93bce4a5853b8ac18c9d2cfa
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Modules/clinic/posixmodule.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/132988/files
Modules/clinic/signalmodule.c.hhttps://github.com/python/cpython/pull/132988/files#diff-98f6708777483962e65a6b0f79f1bfdaff6108decf115a0d6052c7231c24b1a1
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Modules/clinic/signalmodule.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/132988/files
Python/getargs.chttps://github.com/python/cpython/pull/132988/files#diff-3a8078954be00d3c876e02dd0e5057aad07f2c5f82f6c3c76154dcf2866929cf
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Python/getargs.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/132988/{{ revealButtonHref }}
https://github.com/python/cpython/pull/132988/files#diff-3a8078954be00d3c876e02dd0e5057aad07f2c5f82f6c3c76154dcf2866929cf
https://github.com/python/cpython/pull/132988/files#diff-3a8078954be00d3c876e02dd0e5057aad07f2c5f82f6c3c76154dcf2866929cf
https://github.com/python/cpython/pull/132988/files#diff-3a8078954be00d3c876e02dd0e5057aad07f2c5f82f6c3c76154dcf2866929cf
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L124
Tools/clinic/libclinic/converters.pyhttps://github.com/python/cpython/pull/132988/files#diff-6436ad1cc337847309d061b3e5a46466e5ad47ad5e6c2ffe9aef3f3ef3e30d7d
View file https://github.com/serhiy-storchaka/cpython/blob/80eb47cc36130bfb22fcac49ec74619c42617d72/Tools/clinic/libclinic/converters.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/132988/{{ revealButtonHref }}
https://github.com/python/cpython/pull/132988/files#diff-6436ad1cc337847309d061b3e5a46466e5ad47ad5e6c2ffe9aef3f3ef3e30d7d
https://github.com/python/cpython/pull/132988/files#diff-6436ad1cc337847309d061b3e5a46466e5ad47ad5e6c2ffe9aef3f3ef3e30d7d
https://github.com/python/cpython/pull/132988/files#diff-6436ad1cc337847309d061b3e5a46466e5ad47ad5e6c2ffe9aef3f3ef3e30d7d
https://github.com/python/cpython/pull/132988/files#diff-6436ad1cc337847309d061b3e5a46466e5ad47ad5e6c2ffe9aef3f3ef3e30d7d
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.