René's URL Explorer Experiment


Title: gh-104533: Use @ctypes.util.struct decorator by vstinner · Pull Request #154031 · python/cpython · GitHub

Open Graph Title: gh-104533: Use @ctypes.util.struct decorator by vstinner · Pull Request #154031 · python/cpython

X Title: gh-104533: Use @ctypes.util.struct decorator by vstinner · Pull Request #154031 · python/cpython

Description: Use also @ctypes.util.wrap_dll_function() decorator. Issue: gh-104533

Open Graph Description: Use also @ctypes.util.wrap_dll_function() decorator. Issue: gh-104533

X Description: Use also @ctypes.util.wrap_dll_function() decorator. Issue: gh-104533

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

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:c00b45da-fbe3-62c9-683e-05cc63b624e1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE154:22FAD4:6D14C5:91A090:6B00374C
html-safe-noncef0b24d86ecdaf74dfebd9652928ce7a4248bf94fe530678c66119a91a45cb01c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTU0OjIyRkFENDo2RDE0QzU6OTFBMDkwOjZCMDAzNzRDIiwidmlzaXRvcl9pZCI6IjQ0NDk1MjIxNzY5NzgwNzM0MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb0611fdca45a738540922c5ee6bd9177cad96f860c80a10aad395b42eabd108f
hovercard-subject-tagpull_request:4083997259
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/154031/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:altUse also @ctypes.util.wrap_dll_function() decorator. Issue: gh-104533
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/154031/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154031%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%2F154031%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/154031/files
Reloadhttps://github.com/python/cpython/pull/154031/files
Reloadhttps://github.com/python/cpython/pull/154031/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
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:ctypes_structhttps://github.com/vstinner/cpython/tree/ctypes_struct
Conversation 4 https://github.com/python/cpython/pull/154031
Commits 10 https://github.com/python/cpython/pull/154031/commits
Checks 46 https://github.com/python/cpython/pull/154031/checks
Files changed https://github.com/python/cpython/pull/154031/files
Please reload this pagehttps://github.com/python/cpython/pull/154031/files
gh-104533: Use @ctypes.util.struct decorator https://github.com/python/cpython/pull/154031/files#top
Show all changes 10 commits https://github.com/python/cpython/pull/154031/files
add1ed5 gh-104533: Use @ctypes.util.struct decorator vstinner Jul 18, 2026 https://github.com/python/cpython/pull/154031/commits/add1ed5064ca3e29a4ac21a3c5759d1f43180181
05c3378 Revert changes vstinner Jul 18, 2026 https://github.com/python/cpython/pull/154031/commits/05c337815a14302bc05ff1dc6b9dba381ba4f681
2a68f15 Fix test.support vstinner Jul 19, 2026 https://github.com/python/cpython/pull/154031/commits/2a68f158ae5a6c5746a768f091130feda5cfefb4
a1a91c8 Run prek: remove unused import vstinner Jul 19, 2026 https://github.com/python/cpython/pull/154031/commits/a1a91c8fd00df35d32ad0b15a87c9218c0941e3c
ad1835f Patch _pyrepl and test_buffer vstinner Jul 19, 2026 https://github.com/python/cpython/pull/154031/commits/ad1835f3d801368dd8f74be305e29e4fc95db7d2
f1eeb1c Merge branch 'main' into ctypes_struct vstinner Jul 19, 2026 https://github.com/python/cpython/pull/154031/commits/f1eeb1cc3bc6824e64814dd1d7a9f055a0c2a167
2e13234 Use @ctypes.util.struct in more places vstinner Jul 19, 2026 https://github.com/python/cpython/pull/154031/commits/2e132343e82a6691bde4868be616ae18457fc92e
6357c41 Merge branch 'main' into ctypes_struct vstinner Jul 19, 2026 https://github.com/python/cpython/pull/154031/commits/6357c412fa48ff47c103d9c4a9583182a5c39725
4e52388 Fix _pyrepl unions vstinner Jul 19, 2026 https://github.com/python/cpython/pull/154031/commits/4e523880bf1df4b096eaab4c62bf6ec20e3ad0bf
34355c0 Leave _pyrepl unchanged vstinner Jul 19, 2026 https://github.com/python/cpython/pull/154031/commits/34355c05060523506d530d1d8131eeb19c935ca2
Clear filters https://github.com/python/cpython/pull/154031/files
Please reload this pagehttps://github.com/python/cpython/pull/154031/files
Please reload this pagehttps://github.com/python/cpython/pull/154031/files
_test_multiprocessing.py https://github.com/python/cpython/pull/154031/files#diff-c3db62f7c1928499afd71830c22c8bb8f56843a4533cecf69137973d73c489fc
__init__.py https://github.com/python/cpython/pull/154031/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
test_buffer.py https://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
test_codecs.py https://github.com/python/cpython/pull/154031/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
test_refcounts.py https://github.com/python/cpython/pull/154031/files#diff-fe959fb34f64335a7bd04ae7a5b70bbc18da8681cf0b42d67a5a714eb5f86b35
test_unicode.py https://github.com/python/cpython/pull/154031/files#diff-0e62f3df6c3d92afba59f59108f359c230ccc52cc240b82062562f6b323afa85
test_win32_com_foreign_func.py https://github.com/python/cpython/pull/154031/files#diff-5c53d6053c592de0f9c19599c30996c8641235e1b106a29bf20be7b02e512277
utils.py https://github.com/python/cpython/pull/154031/files#diff-98e57d82165b2d3890b881661c9f81e7b5949a6aed5f995a414eac5f10093371
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L542
Lib/test/_test_multiprocessing.pyhttps://github.com/python/cpython/pull/154031/files#diff-c3db62f7c1928499afd71830c22c8bb8f56843a4533cecf69137973d73c489fc
View file https://github.com/vstinner/cpython/blob/34355c05060523506d530d1d8131eeb19c935ca2/Lib/test/_test_multiprocessing.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154031/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154031/files#diff-c3db62f7c1928499afd71830c22c8bb8f56843a4533cecf69137973d73c489fc
https://github.com/python/cpython/pull/154031/files#diff-c3db62f7c1928499afd71830c22c8bb8f56843a4533cecf69137973d73c489fc
https://github.com/python/cpython/pull/154031/files#diff-c3db62f7c1928499afd71830c22c8bb8f56843a4533cecf69137973d73c489fc
https://github.com/python/cpython/pull/154031/files#diff-c3db62f7c1928499afd71830c22c8bb8f56843a4533cecf69137973d73c489fc
Lib/test/support/__init__.pyhttps://github.com/python/cpython/pull/154031/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
View file https://github.com/vstinner/cpython/blob/34355c05060523506d530d1d8131eeb19c935ca2/Lib/test/support/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154031/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154031/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/154031/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
Lib/test/test_buffer.pyhttps://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
View file https://github.com/vstinner/cpython/blob/34355c05060523506d530d1d8131eeb19c935ca2/Lib/test/test_buffer.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154031/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
https://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
https://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
https://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
https://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
https://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
https://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
https://github.com/python/cpython/pull/154031/files#diff-ccd9f4a5ebfeaa46497d8bb31b8cf32a1f73a7e127474770a659124beaa815ff
Lib/test/test_codecs.pyhttps://github.com/python/cpython/pull/154031/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
View file https://github.com/vstinner/cpython/blob/34355c05060523506d530d1d8131eeb19c935ca2/Lib/test/test_codecs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154031/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154031/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
https://github.com/python/cpython/pull/154031/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
Lib/test/test_ctypes/test_refcounts.pyhttps://github.com/python/cpython/pull/154031/files#diff-fe959fb34f64335a7bd04ae7a5b70bbc18da8681cf0b42d67a5a714eb5f86b35
View file https://github.com/vstinner/cpython/blob/34355c05060523506d530d1d8131eeb19c935ca2/Lib/test/test_ctypes/test_refcounts.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154031/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154031/files#diff-fe959fb34f64335a7bd04ae7a5b70bbc18da8681cf0b42d67a5a714eb5f86b35
https://github.com/python/cpython/pull/154031/files#diff-fe959fb34f64335a7bd04ae7a5b70bbc18da8681cf0b42d67a5a714eb5f86b35
Lib/test/test_ctypes/test_unicode.pyhttps://github.com/python/cpython/pull/154031/files#diff-0e62f3df6c3d92afba59f59108f359c230ccc52cc240b82062562f6b323afa85
View file https://github.com/vstinner/cpython/blob/34355c05060523506d530d1d8131eeb19c935ca2/Lib/test/test_ctypes/test_unicode.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154031/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154031/files#diff-0e62f3df6c3d92afba59f59108f359c230ccc52cc240b82062562f6b323afa85
https://github.com/python/cpython/pull/154031/files#diff-0e62f3df6c3d92afba59f59108f359c230ccc52cc240b82062562f6b323afa85
https://github.com/python/cpython/pull/154031/files#diff-0e62f3df6c3d92afba59f59108f359c230ccc52cc240b82062562f6b323afa85
Lib/test/test_ctypes/test_win32_com_foreign_func.pyhttps://github.com/python/cpython/pull/154031/files#diff-5c53d6053c592de0f9c19599c30996c8641235e1b106a29bf20be7b02e512277
View file https://github.com/vstinner/cpython/blob/34355c05060523506d530d1d8131eeb19c935ca2/Lib/test/test_ctypes/test_win32_com_foreign_func.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154031/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154031/files#diff-5c53d6053c592de0f9c19599c30996c8641235e1b106a29bf20be7b02e512277
https://github.com/python/cpython/pull/154031/files#diff-5c53d6053c592de0f9c19599c30996c8641235e1b106a29bf20be7b02e512277
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L526
Lib/test/test_io/utils.pyhttps://github.com/python/cpython/pull/154031/files#diff-98e57d82165b2d3890b881661c9f81e7b5949a6aed5f995a414eac5f10093371
View file https://github.com/vstinner/cpython/blob/34355c05060523506d530d1d8131eeb19c935ca2/Lib/test/test_io/utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154031/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154031/files#diff-98e57d82165b2d3890b881661c9f81e7b5949a6aed5f995a414eac5f10093371
https://github.com/python/cpython/pull/154031/files#diff-98e57d82165b2d3890b881661c9f81e7b5949a6aed5f995a414eac5f10093371
Please reload this pagehttps://github.com/python/cpython/pull/154031/files
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.