René's URL Explorer Experiment


Title: gh-127295: ctypes: Switch field accessors to fixed-width integers by encukou · Pull Request #127297 · python/cpython · GitHub

Open Graph Title: gh-127295: ctypes: Switch field accessors to fixed-width integers by encukou · Pull Request #127297 · python/cpython

X Title: gh-127295: ctypes: Switch field accessors to fixed-width integers by encukou · Pull Request #127297 · python/cpython

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

Open Graph Description: See the issue. This refactoring has a miniscule but consistent performance benefit (1.01x geometric mean; edit: 46 cases slower & 415 faster). See my bench script & results. Thanks @vstinne...

X Description: See the issue. This refactoring has a miniscule but consistent performance benefit (1.01x geometric mean; edit: 46 cases slower & 415 faster). See my bench script & results. Thanks ...

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

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:3b5ebc6d-8db7-0fe0-7faf-1302b605248d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDC46:2E9D3B:70BCC7:8D9D30:6B021DED
html-safe-nonce924939230c40c0c38eaff3c858f5e31729588163d4d5d85feb07ef663016e818
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzQ2OjJFOUQzQjo3MEJDQzc6OEQ5RDMwOjZCMDIxREVEIiwidmlzaXRvcl9pZCI6IjIwODUxMTMxMTgyNzAyOTk2MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfd9ce0c3d15c0fad7dc0432140ef6561447437b1068793b0a296b341f5abde52
hovercard-subject-tagpull_request:2201219599
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/127297/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6a31d1f234059f3e8e7be0c0b8ad15d6fce7a12a72cbf59f7f96b693a58fafd9/python/cpython/pull/127297
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6a31d1f234059f3e8e7be0c0b8ad15d6fce7a12a72cbf59f7f96b693a58fafd9/python/cpython/pull/127297
og:image:altSee the issue. This refactoring has a miniscule but consistent performance benefit (1.01x geometric mean; edit: 46 cases slower & 415 faster). See my bench script & results. Thanks @vstinne...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/127297#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F127297
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%2F127297
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/127297
Reloadhttps://github.com/python/cpython/pull/127297
Reloadhttps://github.com/python/cpython/pull/127297
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
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:ctypes-fixinthttps://github.com/encukou/cpython/tree/ctypes-fixint
Conversationhttps://github.com/python/cpython/pull/127297
Commits20 (20)https://github.com/python/cpython/pull/127297/commits
Checkshttps://github.com/python/cpython/pull/127297/checks
Files changedhttps://github.com/python/cpython/pull/127297/files
gh-127295: ctypes: Switch field accessors to fixed-width integershttps://github.com/python/cpython/pull/127297#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:ctypes-fixinthttps://github.com/encukou/cpython/tree/ctypes-fixint
https://github.com/encukou
encukouhttps://github.com/encukou
Nov 26, 2024https://github.com/python/cpython/pull/127297#issue-2695005216
Please reload this pagehttps://github.com/python/cpython/pull/127297
the issuehttps://github.com/python/cpython/issues/127295
my bench script & resultshttps://gist.github.com/encukou/bb85221add40cfc306896e4375d1adea
@vstinnerhttps://github.com/vstinner
instructions for isolating CPU coreshttps://pyperf.readthedocs.io/en/latest/system.html#isolate-cpus-on-linux
ctypes: Switch field accessors to fixed-width integers #127295https://github.com/python/cpython/issues/127295
Please reload this pagehttps://github.com/python/cpython/pull/127297
encukouhttps://github.com/encukou
November 26, 2024 14:18https://github.com/python/cpython/pull/127297#commits-pushed-eeb0d4e
https://github.com/encukou
Consistently pass the size to getfunc/setfunchttps://github.com/python/cpython/pull/127297/commits/eeb0d4e1fd96c58a1de76c1d974684c1e5e91f10
eeb0d4ehttps://github.com/python/cpython/pull/127297/commits/eeb0d4e1fd96c58a1de76c1d974684c1e5e91f10
https://github.com/encukou
Switch to fixed-width integershttps://github.com/python/cpython/pull/127297/commits/e33c92953b363454351b4073424e813e17b7415d
e33c929https://github.com/python/cpython/pull/127297/commits/e33c92953b363454351b4073424e813e17b7415d
https://github.com/encukou
Remove comment for obsolete ideahttps://github.com/python/cpython/pull/127297/commits/a11c0d9b596b5c9e292b6420b455ffde13f22b51
a11c0d9https://github.com/python/cpython/pull/127297/commits/a11c0d9b596b5c9e292b6420b455ffde13f22b51
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 26, 2024 https://github.com/python/cpython/pull/127297#ref-issue-2694885143
ctypes: Switch field accessors to fixed-width integers #127295 https://github.com/python/cpython/issues/127295
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
Nov 26, 2024https://github.com/python/cpython/pull/127297#event-15437736593
https://github.com/encukou
encukouhttps://github.com/encukou
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Nov 26, 2024https://github.com/python/cpython/pull/127297#event-15437740214
https://github.com/encukou
encukouhttps://github.com/encukou
November 26, 2024 15:03https://github.com/python/cpython/pull/127297#event-15437755499
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
Nov 26, 2024https://github.com/python/cpython/pull/127297#event-15437756154
https://github.com/encukou
encukouhttps://github.com/encukou
Nov 26, 2024https://github.com/python/cpython/pull/127297#issuecomment-2501063409
Please reload this pagehttps://github.com/python/cpython/pull/127297
Please reload this pagehttps://github.com/python/cpython/pull/127297
encukouhttps://github.com/encukou
November 26, 2024 16:10https://github.com/python/cpython/pull/127297#commits-pushed-c69b65f
https://github.com/encukou
Fix the size argumenthttps://github.com/python/cpython/pull/127297/commits/c69b65fe72f02a17d4e5ededa589f3bbe6c9d55a
c69b65fhttps://github.com/python/cpython/pull/127297/commits/c69b65fe72f02a17d4e5ededa589f3bbe6c9d55a
https://github.com/encukou
Re-run Clinichttps://github.com/python/cpython/pull/127297/commits/eb8cf98e1e9646c8c71d80d650acc364b3621fcb
eb8cf98https://github.com/python/cpython/pull/127297/commits/eb8cf98e1e9646c8c71d80d650acc364b3621fcb
https://github.com/encukou
Regen Clinichttps://github.com/python/cpython/pull/127297/commits/b9ed7278328b6bf75d82408048fa2e4049e5649e
b9ed727https://github.com/python/cpython/pull/127297/commits/b9ed7278328b6bf75d82408048fa2e4049e5649e
https://github.com/encukou
Specify signedness of the FFI types, don't match the C typeshttps://github.com/python/cpython/pull/127297/commits/7cbe57ceca172ca729ebdc97facdb25459ea8472
7cbe57chttps://github.com/python/cpython/pull/127297/commits/7cbe57ceca172ca729ebdc97facdb25459ea8472
https://github.com/encukou
Avoid compiler warningshttps://github.com/python/cpython/pull/127297/commits/144a3b0544d04bf5290e7b546e59876334d4982a
144a3b0https://github.com/python/cpython/pull/127297/commits/144a3b0544d04bf5290e7b546e59876334d4982a
https://github.com/encukou
Silence the GCC warning in a more local way. It's a GCC bug.https://github.com/python/cpython/pull/127297/commits/fcae66bf1f432d7ba8fa85f60e018986bc8ec461
fcae66bhttps://github.com/python/cpython/pull/127297/commits/fcae66bf1f432d7ba8fa85f60e018986bc8ec461
https://github.com/encukou
encukouhttps://github.com/encukou
November 27, 2024 08:42https://github.com/python/cpython/pull/127297#event-15449048939
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
Nov 27, 2024https://github.com/python/cpython/pull/127297#event-15449049507
https://github.com/encukou
encukouhttps://github.com/encukou
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Nov 27, 2024https://github.com/python/cpython/pull/127297#event-15449122713
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 27, 2024https://github.com/python/cpython/pull/127297#issuecomment-2503269574
@encukouhttps://github.com/encukou
fcae66bhttps://github.com/python/cpython/commit/fcae66bf1f432d7ba8fa85f60e018986bc8ec461
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Nov 27, 2024https://github.com/python/cpython/pull/127297#event-15449123312
https://github.com/encukou
encukouhttps://github.com/encukou
Dec 6, 2024https://github.com/python/cpython/pull/127297#issuecomment-2522750270
@ZeroIntensityhttps://github.com/ZeroIntensity
@picnixzhttps://github.com/picnixz
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
December 6, 2024 10:40https://github.com/python/cpython/pull/127297#event-15558083319
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Dec 6, 2024https://github.com/python/cpython/pull/127297#issuecomment-2522787425
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/picnixz
picnixzhttps://github.com/picnixz
December 6, 2024 10:40https://github.com/python/cpython/pull/127297#event-15558087180
https://github.com/encukou
encukouhttps://github.com/encukou
Dec 6, 2024https://github.com/python/cpython/pull/127297#issuecomment-2522822053
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
December 6, 2024 12:50https://github.com/python/cpython/pull/127297#event-15559923560
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Dec 6, 2024https://github.com/python/cpython/pull/127297#issuecomment-2523162974
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Dec 6, 2024 https://github.com/python/cpython/pull/127297#pullrequestreview-2484809497
View reviewed changes https://github.com/python/cpython/pull/127297/files/fcae66bf1f432d7ba8fa85f60e018986bc8ec461
picnixzhttps://github.com/picnixz
https://github.com/python/cpython/pull/127297#pullrequestreview-2484809497
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/127297
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/fcae66bf1f432d7ba8fa85f60e018986bc8ec461#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Please reload this pagehttps://github.com/python/cpython/pull/127297
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/fcae66bf1f432d7ba8fa85f60e018986bc8ec461#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Please reload this pagehttps://github.com/python/cpython/pull/127297
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/fcae66bf1f432d7ba8fa85f60e018986bc8ec461#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Please reload this pagehttps://github.com/python/cpython/pull/127297
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/fcae66bf1f432d7ba8fa85f60e018986bc8ec461#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Please reload this pagehttps://github.com/python/cpython/pull/127297
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/fcae66bf1f432d7ba8fa85f60e018986bc8ec461#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Please reload this pagehttps://github.com/python/cpython/pull/127297
encukouhttps://github.com/encukou
December 6, 2024 15:44https://github.com/python/cpython/pull/127297#commits-pushed-05ba989
https://github.com/encukou
https://github.com/picnixz
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/127297/commits/05ba9899bcd62b991d51bc3ffad385dd1d79915b
05ba989https://github.com/python/cpython/pull/127297/commits/05ba9899bcd62b991d51bc3ffad385dd1d79915b
https://github.com/encukou
Add parens around macro argumenthttps://github.com/python/cpython/pull/127297/commits/7c08d60da964ae868549eed0296182a2816a0b17
7c08d60https://github.com/python/cpython/pull/127297/commits/7c08d60da964ae868549eed0296182a2816a0b17
encukouhttps://github.com/encukou
December 6, 2024 15:45https://github.com/python/cpython/pull/127297#commits-pushed-50c82be
https://github.com/encukou
Fix refcounting for _CTYPES_DEBUG_KEEP buildshttps://github.com/python/cpython/pull/127297/commits/50c82bed90acfb44043338a567eda51b47cec65f
50c82behttps://github.com/python/cpython/pull/127297/commits/50c82bed90acfb44043338a567eda51b47cec65f
https://github.com/encukou
Consistency in comments. Why not.https://github.com/python/cpython/pull/127297/commits/7375c09dc4810daa3e5ad1957ea2f985e890b3b0
7375c09https://github.com/python/cpython/pull/127297/commits/7375c09dc4810daa3e5ad1957ea2f985e890b3b0
https://github.com/encukou
Merge in the main branchhttps://github.com/python/cpython/pull/127297/commits/6e8a4de0f8b3dd41290178b6446fe8aabed41715
6e8a4dehttps://github.com/python/cpython/pull/127297/commits/6e8a4de0f8b3dd41290178b6446fe8aabed41715
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Dec 7, 2024 https://github.com/python/cpython/pull/127297#pullrequestreview-2486614948
View reviewed changes https://github.com/python/cpython/pull/127297/files/6e8a4de0f8b3dd41290178b6446fe8aabed41715
ZeroIntensityhttps://github.com/ZeroIntensity
https://github.com/python/cpython/pull/127297#pullrequestreview-2486614948
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@skirpichevhttps://github.com/skirpichev
Please reload this pagehttps://github.com/python/cpython/pull/127297
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/6e8a4de0f8b3dd41290178b6446fe8aabed41715#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Please reload this pagehttps://github.com/python/cpython/pull/127297
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/6e8a4de0f8b3dd41290178b6446fe8aabed41715#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Please reload this pagehttps://github.com/python/cpython/pull/127297
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/6e8a4de0f8b3dd41290178b6446fe8aabed41715#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Please reload this pagehttps://github.com/python/cpython/pull/127297
encukouhttps://github.com/encukou
December 9, 2024 12:27https://github.com/python/cpython/pull/127297#commits-pushed-870a038
https://github.com/encukou
Include & use bool rather than _Boolhttps://github.com/python/cpython/pull/127297/commits/870a03849990e1cc45c7a6fe9c2bc654d7cc7258
870a038https://github.com/python/cpython/pull/127297/commits/870a03849990e1cc45c7a6fe9c2bc654d7cc7258
https://github.com/encukou
Use a mutex around _ctypes_init_fielddeschttps://github.com/python/cpython/pull/127297/commits/1b41ace5734297732c89cc53d222fea718ce9533
1b41acehttps://github.com/python/cpython/pull/127297/commits/1b41ace5734297732c89cc53d222fea718ce9533
https://github.com/encukou
encukouhttps://github.com/encukou
Dec 9, 2024 https://github.com/python/cpython/pull/127297#ref-pullrequest-2666563725
gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes #126938 https://github.com/python/cpython/pull/126938
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
December 10, 2024 00:09https://github.com/python/cpython/pull/127297#event-15592301006
https://github.com/encukou
encukouhttps://github.com/encukou
Dec 11, 2024 https://github.com/python/cpython/pull/127297#ref-pullrequest-2732981643
[3.13] gh-126937: ctypes: add test for maximum size of a struct field (GH-126938) #127825 https://github.com/python/cpython/pull/127825
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Dec 12, 2024 https://github.com/python/cpython/pull/127297#pullrequestreview-2492352058
View reviewed changes https://github.com/python/cpython/pull/127297/files/1b41ace5734297732c89cc53d222fea718ce9533
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/1b41ace5734297732c89cc53d222fea718ce9533#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Please reload this pagehttps://github.com/python/cpython/pull/127297
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/1b41ace5734297732c89cc53d222fea718ce9533#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
ZeroIntensityhttps://github.com/ZeroIntensity
Dec 10, 2024https://github.com/python/cpython/pull/127297#discussion_r1878112485
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/127297
encukouhttps://github.com/encukou
Dec 13, 2024https://github.com/python/cpython/pull/127297#discussion_r1883751399
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/127297
encukouhttps://github.com/encukou
December 13, 2024 11:55https://github.com/python/cpython/pull/127297#commits-pushed-07d7ded
https://github.com/encukou
Merge in the main branchhttps://github.com/python/cpython/pull/127297/commits/07d7ded17616cd9c4363b5fcbce8f0e6f4e47a58
07d7dedhttps://github.com/python/cpython/pull/127297/commits/07d7ded17616cd9c4363b5fcbce8f0e6f4e47a58
https://github.com/encukou
Nitpick: Use true/false for boolhttps://github.com/python/cpython/pull/127297/commits/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1
34098c3https://github.com/python/cpython/pull/127297/commits/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1
https://github.com/encukou
encukouhttps://github.com/encukou
Dec 13, 2024https://github.com/python/cpython/pull/127297#issuecomment-2541267081
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Dec 13, 2024 https://github.com/python/cpython/pull/127297#pullrequestreview-2502280420
View reviewed changes https://github.com/python/cpython/pull/127297/files/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1
ZeroIntensityhttps://github.com/ZeroIntensity
https://github.com/python/cpython/pull/127297#pullrequestreview-2502280420
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/encukou
encukouhttps://github.com/encukou
Dec 16, 2024https://github.com/python/cpython/pull/127297#issuecomment-2545850168
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
Dec 17, 2024 https://github.com/python/cpython/pull/127297#pullrequestreview-2507799141
View reviewed changes https://github.com/python/cpython/pull/127297/files/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/127297/files/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
skirpichevhttps://github.com/skirpichev
Dec 17, 2024https://github.com/python/cpython/pull/127297#discussion_r1887864414
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/encukou
encukouhttps://github.com/encukou
Dec 18, 2024https://github.com/python/cpython/pull/127297#issuecomment-2550979940
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/encukou
Avoid unaligned loadhttps://github.com/python/cpython/pull/127297/commits/5155293361de5db6abe76b50a6510452441e4fb7
5155293https://github.com/python/cpython/pull/127297/commits/5155293361de5db6abe76b50a6510452441e4fb7
https://github.com/encukou
encukouhttps://github.com/encukou
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Dec 18, 2024https://github.com/python/cpython/pull/127297#event-15702101509
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Dec 18, 2024https://github.com/python/cpython/pull/127297#issuecomment-2551118172
@encukouhttps://github.com/encukou
5155293https://github.com/python/cpython/commit/5155293361de5db6abe76b50a6510452441e4fb7
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Dec 18, 2024https://github.com/python/cpython/pull/127297#event-15702102177
https://github.com/encukou
Merge branch 'main' into ctypes-fixinthttps://github.com/python/cpython/pull/127297/commits/821a7b82e6e750f9fcb054d2bed5eed3f332e020
821a7b8https://github.com/python/cpython/pull/127297/commits/821a7b82e6e750f9fcb054d2bed5eed3f332e020
https://github.com/encukou
encukouhttps://github.com/encukou
78ffba4https://github.com/python/cpython/commit/78ffba4221dcb2e39fd5db80c297d1777588bb59
Dec 20, 2024https://github.com/python/cpython/pull/127297#event-15732704394
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
Dec 20, 2024https://github.com/python/cpython/pull/127297#event-15732704920
https://github.com/encukou
encukouhttps://github.com/encukou
December 20, 2024 13:28https://github.com/python/cpython/pull/127297#event-15732704925
https://github.com/encukou
encukouhttps://github.com/encukou
Dec 20, 2024https://github.com/python/cpython/pull/127297#issuecomment-2557020803
Please reload this pagehttps://github.com/python/cpython/pull/127297
srinivasreddyhttps://github.com/srinivasreddy
Dec 23, 2024 https://github.com/python/cpython/pull/127297#ref-commit-6ef3119
https://github.com/encukou
https://github.com/picnixz
https://github.com/srinivasreddy
pythongh-127295https://github.com/python/cpython/issues/127295
: ctypes: Switch field accessors to fixed-width intege…https://github.com/srinivasreddy/cpython/commit/6ef3119d5be195d73044827a5cecc8e6e6b13d44
6ef3119https://github.com/srinivasreddy/cpython/commit/6ef3119d5be195d73044827a5cecc8e6e6b13d44
pythonGH-127297https://github.com/python/cpython/pull/127297
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L420-L444https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L420-L444
https://docs.python.org/3/library/struct.html#format-charactershttps://docs.python.org/3/library/struct.html#format-characters
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L470-L653https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L470-L653
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L703-L944https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L703-L944
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L613https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L613
https://docs.python.org/3/c-api/long.html#c.PyLong_AsNativeByteshttps://docs.python.org/3/c-api/long.html#c.PyLong_AsNativeBytes
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L1547-L1555https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L1547-L1555
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L1562-L1572https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L1562-L1572
srinivasreddyhttps://github.com/srinivasreddy
Jan 8, 2025 https://github.com/python/cpython/pull/127297#ref-commit-fcac658
https://github.com/encukou
https://github.com/picnixz
https://github.com/srinivasreddy
pythongh-127295https://github.com/python/cpython/issues/127295
: ctypes: Switch field accessors to fixed-width intege…https://github.com/srinivasreddy/cpython/commit/fcac658ea5003c54209e58a255745fbd6757cc6f
fcac658https://github.com/srinivasreddy/cpython/commit/fcac658ea5003c54209e58a255745fbd6757cc6f
pythonGH-127297https://github.com/python/cpython/pull/127297
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L420-L444https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L420-L444
https://docs.python.org/3/library/struct.html#format-charactershttps://docs.python.org/3/library/struct.html#format-characters
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L470-L653https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L470-L653
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L703-L944https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L703-L944
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L613https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L613
https://docs.python.org/3/c-api/long.html#c.PyLong_AsNativeByteshttps://docs.python.org/3/c-api/long.html#c.PyLong_AsNativeBytes
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L1547-L1555https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L1547-L1555
https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L1562-L1572https://github.com/python/cpython/blob/v3.13.0/Modules/_ctypes/cfield.c#L1562-L1572
https://github.com/matthiasgoergens
matthiasgoergenshttps://github.com/matthiasgoergens
Jul 30, 2026 https://github.com/python/cpython/pull/127297#ref-pullrequest-1377476902
gh-96821: Fix undefined behaviour in _ctypes/cfield.c #96925 https://github.com/python/cpython/pull/96925
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%2F127297
https://github.com/skirpichev
skirpichev https://github.com/skirpichev
https://github.com/python/cpython/pull/127297/files/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1
https://github.com/picnixz
picnixz https://github.com/picnixz
https://github.com/python/cpython/pull/127297/files/fcae66bf1f432d7ba8fa85f60e018986bc8ec461
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
https://github.com/python/cpython/pull/127297/files/34098c351dd1ec217ce7360e5d3cf9ea4c3711a1
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/127297
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/127297
https://github.com/encukou
https://github.com/bedevere-bot
https://github.com/picnixz
https://github.com/ZeroIntensity
https://github.com/skirpichev
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.