René's URL Explorer Experiment


Title: Support __index__() for unsigned integer converters in PyArg_Parse and Argument Clinic · Issue #132987 · python/cpython · GitHub

Open Graph Title: Support __index__() for unsigned integer converters in PyArg_Parse and Argument Clinic · Issue #132987 · python/cpython

X Title: Support __index__() for unsigned integer converters in PyArg_Parse and Argument Clinic · Issue #132987 · python/cpython

Description: The __index__() special method was introduced to make other integer-like types which are not int subclasses to be accepted as integer arguments. It is supported by all PyArg_Parse format units for integers, except k (long sized bitfield)...

Open Graph Description: The __index__() special method was introduced to make other integer-like types which are not int subclasses to be accepted as integer arguments. It is supported by all PyArg_Parse format units for ...

X Description: The __index__() special method was introduced to make other integer-like types which are not int subclasses to be accepted as integer arguments. It is supported by all PyArg_Parse format units for ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support __index__() for unsigned integer converters in PyArg_Parse and Argument Clinic","articleBody":"The `__index__()` special method was introduced to make other integer-like types which are not `int` subclasses to be accepted as integer arguments.\n\nIt is supported by all `PyArg_Parse` format units for integers, except `k` (long sized bitfield) and `K` (long long sized bitfield). Argument Clinic has the same behavior for `unsigned_long(bitwise=True)` and `unsigned_long_long(bitwise=True)`. It supports also non-bitwise unsigned integer converters, all of them do not support `__index__()`.\n\nNote that making `PyLong_AsUnsignedLong()` and `PyLong_AsUnsignedLongLong()` to support `__index__()` is potentially unsafe. But the higher level code that uses them, can be changed.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-132988\n* gh-133011\n* gh-133093\n* gh-133094\n* gh-133096\n* gh-133097\n* gh-133098\n* gh-133099\n* gh-133100\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2025-04-26T08:56:48Z","url":"https://github.com/python/cpython/issues/132987"}

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:011c5717-17d9-60a6-b58e-3cdb13ca17c4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8A5C:187C1E:1060387:15AED73:6B01DE4C
html-safe-nonce6742633ac5afdca70b16d0302a7656ece01f5e5d9e69c263535fcc06fbc4b3f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTVDOjE4N0MxRToxMDYwMzg3OjE1QUVENzM6NkIwMURFNEMiLCJ2aXNpdG9yX2lkIjoiNzA5NTQxNjE4OTYwNTc2NDY4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdf08b9e4a673c28aed6eb07cad9246606e8fea5c2eba7f6cd1ccfc29deb08cf0
hovercard-subject-tagissue:3021636607
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/132987/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4b4f575cc610f799c189109c102acedeb30cbc0ba5bf3689c6b9e679c4086df9/python/cpython/issues/132987
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4b4f575cc610f799c189109c102acedeb30cbc0ba5bf3689c6b9e679c4086df9/python/cpython/issues/132987
og:image:altThe __index__() special method was introduced to make other integer-like types which are not int subclasses to be accepted as integer arguments. It is supported by all PyArg_Parse format units for ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/132987#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F132987
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%2F132987
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/132987
Reloadhttps://github.com/python/cpython/issues/132987
Reloadhttps://github.com/python/cpython/issues/132987
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/132987
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/132987
Support __index__() for unsigned integer converters in PyArg_Parse and Argument Clinichttps://github.com/python/cpython/issues/132987#top
https://github.com/serhiy-storchaka
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-argument-clinichttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-argument-clinic%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 26, 2025https://github.com/python/cpython/issues/132987#issue-3021636607
gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse #132988https://github.com/python/cpython/pull/132988
gh-132987: Support __index__() for unsigned integers in Argument Clinic #133011https://github.com/python/cpython/pull/133011
gh-132987: Support __index__() in the socket module #133093https://github.com/python/cpython/pull/133093
gh-132987: Support __index__() in the select.kqueue_event constructor #133094https://github.com/python/cpython/pull/133094
gh-132987: Support __index__() in the posix module #133096https://github.com/python/cpython/pull/133096
gh-132987: Support __index__() in the stat module #133097https://github.com/python/cpython/pull/133097
gh-132987: Support __index__() in the ssl.SSLContext.options setter #133098https://github.com/python/cpython/pull/133098
gh-132987: Support __index__() in the lzma module #133099https://github.com/python/cpython/pull/133099
gh-132987: Support __index__() in hashlib.scrypt() #133100https://github.com/python/cpython/pull/133100
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 26, 2025https://github.com/python/cpython/issues/132987#event-17415414117
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 26, 2025https://github.com/python/cpython/issues/132987#event-17415445636
pythongh-132987: Support __index__() for "k" and "K" formats in PyArg…https://github.com/serhiy-storchaka/cpython/commit/2b1ac4d0987655ca33d7b22134195b9e2787bd98
pythongh-132987https://github.com/python/cpython/issues/132987
2b1ac4dhttps://github.com/serhiy-storchaka/cpython/commit/2b1ac4d0987655ca33d7b22134195b9e2787bd98
pythongh-132987: Support __index__() for "k" and "K" formats in PyArg…https://github.com/serhiy-storchaka/cpython/commit/a93a9357d52b1873272cf85065376fba489aeac7
pythongh-132987https://github.com/python/cpython/issues/132987
a93a935https://github.com/serhiy-storchaka/cpython/commit/a93a9357d52b1873272cf85065376fba489aeac7
picnixzhttps://github.com/picnixz
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-argument-clinichttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-argument-clinic%22
on Apr 26, 2025https://github.com/python/cpython/issues/132987#event-17415483369
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 26, 2025https://github.com/python/cpython/issues/132987#event-17415483697
pythongh-132987: Support __index__() for "k" and "K" formats in PyArg…https://github.com/serhiy-storchaka/cpython/commit/8ac2dba1528472d2b057ad1e0dc73782d6ad926e
pythongh-132987https://github.com/python/cpython/issues/132987
8ac2dbahttps://github.com/serhiy-storchaka/cpython/commit/8ac2dba1528472d2b057ad1e0dc73782d6ad926e
gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse (…https://github.com/python/cpython/commit/632524a5cbdd3e999992d0e9e68fe8b464ed16ec
gh-132987https://github.com/python/cpython/issues/132987
…https://github.com/python/cpython/pull/132988
632524ahttps://github.com/python/cpython/commit/632524a5cbdd3e999992d0e9e68fe8b464ed16ec
pythongh-132987: Support __index__() for unsigned integers in Argumen…https://github.com/serhiy-storchaka/cpython/commit/11b160bf092df455463b7b004685d67d29c7a5aa
pythongh-132987https://github.com/python/cpython/issues/132987
11b160bhttps://github.com/serhiy-storchaka/cpython/commit/11b160bf092df455463b7b004685d67d29c7a5aa
pythongh-132987: Support __index__() for unsigned integers in Argumen…https://github.com/serhiy-storchaka/cpython/commit/5cfe39830641dd3f6813fd8041fcf73c028f66d1
pythongh-132987https://github.com/python/cpython/issues/132987
5cfe398https://github.com/serhiy-storchaka/cpython/commit/5cfe39830641dd3f6813fd8041fcf73c028f66d1
gh-132987: Support __index__() for unsigned integers in Argument Clin…https://github.com/python/cpython/commit/6677c2c165c32765d3b61a496f806319ba31f768
gh-132987https://github.com/python/cpython/issues/132987
6677c2chttps://github.com/python/cpython/commit/6677c2c165c32765d3b61a496f806319ba31f768
pythongh-132987: Support __index__() in the socket modulehttps://github.com/serhiy-storchaka/cpython/commit/08bf311fa8196d18bc2d9a60641b19dbbe381899
pythongh-132987https://github.com/python/cpython/issues/132987
08bf311https://github.com/serhiy-storchaka/cpython/commit/08bf311fa8196d18bc2d9a60641b19dbbe381899
pythongh-132987: Support __index__() in the select.kqueue_event const…https://github.com/serhiy-storchaka/cpython/commit/bf48d7c75970139a6d02b96dfd0bc9c4ce56e7fb
pythongh-132987https://github.com/python/cpython/issues/132987
bf48d7chttps://github.com/serhiy-storchaka/cpython/commit/bf48d7c75970139a6d02b96dfd0bc9c4ce56e7fb
pythongh-132987: Support __index__() in the posix modulehttps://github.com/serhiy-storchaka/cpython/commit/6d17bcc9ae0e56ef9deb586ea8dc8fcdecaae34e
pythongh-132987https://github.com/python/cpython/issues/132987
6d17bcchttps://github.com/serhiy-storchaka/cpython/commit/6d17bcc9ae0e56ef9deb586ea8dc8fcdecaae34e
pythongh-132987: Support __index__() in the stat modulehttps://github.com/serhiy-storchaka/cpython/commit/a5cd1a56bfc3c4566de2b4c23d355ab6d8f831c4
pythongh-132987https://github.com/python/cpython/issues/132987
a5cd1a5https://github.com/serhiy-storchaka/cpython/commit/a5cd1a56bfc3c4566de2b4c23d355ab6d8f831c4
pythongh-132987: Support __index__() in the ssl.SSLContext.options se…https://github.com/serhiy-storchaka/cpython/commit/1db46f788f0a6d1005f9565d8a74e54efbbbb3b9
pythongh-132987https://github.com/python/cpython/issues/132987
1db46f7https://github.com/serhiy-storchaka/cpython/commit/1db46f788f0a6d1005f9565d8a74e54efbbbb3b9
pythongh-132987: Support __index__() in the lzma modulehttps://github.com/serhiy-storchaka/cpython/commit/e58813bb2bfaf4e6e38470c3aa92ac3611f1b5d3
pythongh-132987https://github.com/python/cpython/issues/132987
e58813bhttps://github.com/serhiy-storchaka/cpython/commit/e58813bb2bfaf4e6e38470c3aa92ac3611f1b5d3
pythongh-132987: Support __index__() in hashlibi.scrypt()https://github.com/serhiy-storchaka/cpython/commit/4149376d1aa7141e01e5456760e664ede13d0e0a
pythongh-132987https://github.com/python/cpython/issues/132987
4149376https://github.com/serhiy-storchaka/cpython/commit/4149376d1aa7141e01e5456760e664ede13d0e0a
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 28, 2025https://github.com/python/cpython/issues/132987#issuecomment-2836398043
#74020https://github.com/python/cpython/issues/74020
serhiy-storchakahttps://github.com/serhiy-storchaka
on Apr 29, 2025https://github.com/python/cpython/issues/132987#event-17455136366
gh-132987: Support __index__() in the posix module (GH-133096)https://github.com/python/cpython/commit/07edc0d2b232c19c948a7e65d0c9bd61c7ccdcc8
gh-132987https://github.com/python/cpython/issues/132987
GH-133096https://github.com/python/cpython/pull/133096
07edc0dhttps://github.com/python/cpython/commit/07edc0d2b232c19c948a7e65d0c9bd61c7ccdcc8
gh-132987: Support __index__() in hashlib.scrypt() (GH-133100)https://github.com/python/cpython/commit/d6da6803a1a20cc34795c501b7cdb6b53b6a23b6
gh-132987https://github.com/python/cpython/issues/132987
GH-133100https://github.com/python/cpython/pull/133100
d6da680https://github.com/python/cpython/commit/d6da6803a1a20cc34795c501b7cdb6b53b6a23b6
gh-132987: Support __index__() in the ssl.SSLContext.options setter (G…https://github.com/python/cpython/commit/0fb4c38c273213394b6c5e28432a3dcfc752d289
gh-132987https://github.com/python/cpython/issues/132987
G…https://github.com/python/cpython/pull/133098
0fb4c38https://github.com/python/cpython/commit/0fb4c38c273213394b6c5e28432a3dcfc752d289
gh-132987: Support __index__() in the select.kqueue_event constructor (…https://github.com/python/cpython/commit/d2d490064d8acc7534a0729ef7710b9b013a459f
gh-132987https://github.com/python/cpython/issues/132987
…https://github.com/python/cpython/pull/133094
d2d4900https://github.com/python/cpython/commit/d2d490064d8acc7534a0729ef7710b9b013a459f
gh-132987: Support __index__() in the lzma module (GH-133099)https://github.com/python/cpython/commit/a64fdc7513965ff2283d1c0a7065c35072c367c3
gh-132987https://github.com/python/cpython/issues/132987
GH-133099https://github.com/python/cpython/pull/133099
a64fdc7https://github.com/python/cpython/commit/a64fdc7513965ff2283d1c0a7065c35072c367c3
gh-132987: Support __index__() in the stat module (GH-133097)https://github.com/python/cpython/commit/c33efa8735dfdb24011f5754f5e9e991c05f0587
gh-132987https://github.com/python/cpython/issues/132987
GH-133097https://github.com/python/cpython/pull/133097
c33efa8https://github.com/python/cpython/commit/c33efa8735dfdb24011f5754f5e9e991c05f0587
gh-132987: Support __index__() in the socket module (GH-133093)https://github.com/python/cpython/commit/4265854d96c907ce7bd5cde164ebb2b7e99b8f3f
gh-132987https://github.com/python/cpython/issues/132987
GH-133093https://github.com/python/cpython/pull/133093
4265854https://github.com/python/cpython/commit/4265854d96c907ce7bd5cde164ebb2b7e99b8f3f
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on May 13, 2025https://github.com/python/cpython/issues/132987#issuecomment-2876752957
serhiy-storchakahttps://github.com/serhiy-storchaka
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 13, 2025https://github.com/python/cpython/issues/132987#event-17636842323
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/132987
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/132987
serhiy-storchakahttps://github.com/serhiy-storchaka
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-argument-clinichttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-argument-clinic%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%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.