René's URL Explorer Experiment


Title: gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes by Melissa0x1f992 · Pull Request #126938 · python/cpython · GitHub

Open Graph Title: gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes by Melissa0x1f992 · Pull Request #126938 · python/cpython

X Title: gh-126937: ctypes: fix TypeError when a field's size is >65535 bytes by Melissa0x1f992 · Pull Request #126938 · python/cpython

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

Open Graph Description: Used the bit_size_obj as seems to be intended, based on its usage in Lib/ctypes/_layout.py Tested the change locally informally. Didn't write any tests. Issue: Struct fields with size > 6...

X Description: Used the bit_size_obj as seems to be intended, based on its usage in Lib/ctypes/_layout.py Tested the change locally informally. Didn't write any tests. Issue: Struct fields with size &a...

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

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/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:931513ec-cf29-3969-e4bd-5aacf5724a8c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBEE8:50ADA:76EB2:9D75B:6B0223AF
html-safe-nonce0edb656e58cc8de5541366c6231d093dba24daa0ac2c1923b97c71af766d5347
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUU4OjUwQURBOjc2RUIyOjlENzVCOjZCMDIyM0FGIiwidmlzaXRvcl9pZCI6IjQ3ODg1NTU5NTA3MjU2MjA5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac865f1a7b7507698e744a23288a7a1287ece9c41df8a7c01f813cdc14f06625b7
hovercard-subject-tagpull_request:2183918855
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/126938/commits
twitter:imagehttps://opengraph.githubassets.com/f51d1cae856b5f779b02cfeff3fe34c3e4497971ca4816ace1ebc955769fb35d/python/cpython/pull/126938
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f51d1cae856b5f779b02cfeff3fe34c3e4497971ca4816ace1ebc955769fb35d/python/cpython/pull/126938
og:image:altUsed the bit_size_obj as seems to be intended, based on its usage in Lib/ctypes/_layout.py Tested the change locally informally. Didn't write any tests. Issue: Struct fields with size > 6...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMelissa0x1f992
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/126938/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F126938%2Fcommits
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%2F126938%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/126938/commits
Reloadhttps://github.com/python/cpython/pull/126938/commits
Reloadhttps://github.com/python/cpython/pull/126938/commits
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
Melissa0x1f992:mainhttps://github.com/Melissa0x1f992/cpython/tree/main
Conversationhttps://github.com/python/cpython/pull/126938
Commits20 (20)https://github.com/python/cpython/pull/126938/commits
Checkshttps://github.com/python/cpython/pull/126938/checks
Files changedhttps://github.com/python/cpython/pull/126938/files
gh-126937: ctypes: fix TypeError when a field's size is >65535 byteshttps://github.com/python/cpython/pull/126938/commits#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
Melissa0x1f992:mainhttps://github.com/Melissa0x1f992/cpython/tree/main
Fix rejection when non-bitfield fields are larger than 2^16 byteshttps://github.com/python/cpython/pull/126938/commits/1962567aac71c16604a405c060b9a11ec6a82646
https://github.com/Melissa0x1f992
Melissa0x1f992https://github.com/python/cpython/commits?author=Melissa0x1f992
1962567https://github.com/python/cpython/pull/126938/commits/1962567aac71c16604a405c060b9a11ec6a82646
https://github.com/python/cpython/tree/1962567aac71c16604a405c060b9a11ec6a82646
Merge pull request #1 from Melissa0x1f992/use-bitsize-paramhttps://github.com/python/cpython/pull/126938/commits/1900cf5b4ffa76cb2c0185dda6c8cb930a538834
https://github.com/Melissa0x1f992
Melissa0x1f992https://github.com/python/cpython/commits?author=Melissa0x1f992
1900cf5https://github.com/python/cpython/pull/126938/commits/1900cf5b4ffa76cb2c0185dda6c8cb930a538834
https://github.com/python/cpython/tree/1900cf5b4ffa76cb2c0185dda6c8cb930a538834
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/126938/commits/2bd972b180e5d750cb5140171b9df35677ecb8f7
https://github.com/apps/blurb-it
blurb-it[bot]https://github.com/python/cpython/commits?author=blurb-it%5Bbot%5D
2bd972bhttps://github.com/python/cpython/pull/126938/commits/2bd972b180e5d750cb5140171b9df35677ecb8f7
https://github.com/python/cpython/tree/2bd972b180e5d750cb5140171b9df35677ecb8f7
Update Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/126938/commits/d2954cdefdbe3608116c425796b134ff53fd1d60
https://github.com/terryjreedy
terryjreedyhttps://github.com/python/cpython/commits?author=terryjreedy
d2954cdhttps://github.com/python/cpython/pull/126938/commits/d2954cdefdbe3608116c425796b134ff53fd1d60
https://github.com/python/cpython/tree/d2954cdefdbe3608116c425796b134ff53fd1d60
Remove specific dependency on Python 3.12 for blackhttps://github.com/python/cpython/pull/126938/commits/0d2122978662f9efc676c22c2c90f0beeda95f30
https://github.com/Melissa0x1f992
Melissa0x1f992https://github.com/python/cpython/commits?author=Melissa0x1f992
0d21229https://github.com/python/cpython/pull/126938/commits/0d2122978662f9efc676c22c2c90f0beeda95f30
https://github.com/python/cpython/tree/0d2122978662f9efc676c22c2c90f0beeda95f30
Add test case for large fieldshttps://github.com/python/cpython/pull/126938/commits/d8a6f080eaaa70a977c8700243a28f492076258d
https://github.com/Melissa0x1f992
Melissa0x1f992https://github.com/python/cpython/commits?author=Melissa0x1f992
d8a6f08https://github.com/python/cpython/pull/126938/commits/d8a6f080eaaa70a977c8700243a28f492076258d
https://github.com/python/cpython/tree/d8a6f080eaaa70a977c8700243a28f492076258d
Merge pull request #2 from Melissa0x1f992/use-bitsize-paramhttps://github.com/python/cpython/pull/126938/commits/16bfb440f722f69ab5a72a1cfaa93dd540aa233a
https://github.com/Melissa0x1f992
Melissa0x1f992https://github.com/python/cpython/commits?author=Melissa0x1f992
16bfb44https://github.com/python/cpython/pull/126938/commits/16bfb440f722f69ab5a72a1cfaa93dd540aa233a
https://github.com/python/cpython/tree/16bfb440f722f69ab5a72a1cfaa93dd540aa233a
Reduce test field size to (2^31 - 1) to support 32 bit systemshttps://github.com/python/cpython/pull/126938/commits/7402a8f60767694f2b335a8f855d2cdbdc1df7e2
https://github.com/Melissa0x1f992
Melissa0x1f992https://github.com/python/cpython/commits?author=Melissa0x1f992
7402a8fhttps://github.com/python/cpython/pull/126938/commits/7402a8f60767694f2b335a8f855d2cdbdc1df7e2
https://github.com/python/cpython/tree/7402a8f60767694f2b335a8f855d2cdbdc1df7e2
Merge branch 'python:main' into mainhttps://github.com/python/cpython/pull/126938/commits/8994ad041c21f6b450cbc613d29a14f05f7b22ca
https://github.com/Melissa0x1f992
Melissa0x1f992https://github.com/python/cpython/commits?author=Melissa0x1f992
8994ad0https://github.com/python/cpython/pull/126938/commits/8994ad041c21f6b450cbc613d29a14f05f7b22ca
https://github.com/python/cpython/tree/8994ad041c21f6b450cbc613d29a14f05f7b22ca
Reduce test field size to (2^31 - 1) to support 32 bit systemshttps://github.com/python/cpython/pull/126938/commits/db171e04a3a6a323e398591b4e235ffc989f15ee
https://github.com/Melissa0x1f992
Melissa0x1f992https://github.com/python/cpython/commits?author=Melissa0x1f992
db171e0https://github.com/python/cpython/pull/126938/commits/db171e04a3a6a323e398591b4e235ffc989f15ee
https://github.com/python/cpython/tree/db171e04a3a6a323e398591b4e235ffc989f15ee
Merge pull request #3 from Melissa0x1f992/use-bitsize-paramhttps://github.com/python/cpython/pull/126938/commits/7bc0cebb10e19004468a28c14aa943b2a7053174
https://github.com/Melissa0x1f992
Melissa0x1f992https://github.com/python/cpython/commits?author=Melissa0x1f992
7bc0cebhttps://github.com/python/cpython/pull/126938/commits/7bc0cebb10e19004468a28c14aa943b2a7053174
https://github.com/python/cpython/tree/7bc0cebb10e19004468a28c14aa943b2a7053174
Merge in the main branchhttps://github.com/python/cpython/pull/126938/commits/cd8c011684484c557c719a54840789438aee6463
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
cd8c011https://github.com/python/cpython/pull/126938/commits/cd8c011684484c557c719a54840789438aee6463
https://github.com/python/cpython/tree/cd8c011684484c557c719a54840789438aee6463
Remove pre-commit config (moved to #126971)https://github.com/python/cpython/pull/126938/commits/a3bd1714b2873a83a1433288c67da28f9adcc5e7
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
a3bd171https://github.com/python/cpython/pull/126938/commits/a3bd1714b2873a83a1433288c67da28f9adcc5e7
https://github.com/python/cpython/tree/a3bd1714b2873a83a1433288c67da28f9adcc5e7
Use PyLong_AsSsize_t to convert to Py_ssize_thttps://github.com/python/cpython/pull/126938/commits/5e8aec0419d69a02b179d20412ff4b1719c05662
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
5e8aec0https://github.com/python/cpython/pull/126938/commits/5e8aec0419d69a02b179d20412ff4b1719c05662
https://github.com/python/cpython/tree/5e8aec0419d69a02b179d20412ff4b1719c05662
Test maximum field size (sys.maxsize / 8, so we can count bits later)https://github.com/python/cpython/pull/126938/commits/7d3bb107a7376aab67848c05726761bc70d2ad82
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
7d3bb10https://github.com/python/cpython/pull/126938/commits/7d3bb107a7376aab67848c05726761bc70d2ad82
https://github.com/python/cpython/tree/7d3bb107a7376aab67848c05726761bc70d2ad82
Rework the asserts.https://github.com/python/cpython/pull/126938/commits/946f26107a913ff77bd39557962d77ca60139e70
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
946f261https://github.com/python/cpython/pull/126938/commits/946f26107a913ff77bd39557962d77ca60139e70
https://github.com/python/cpython/tree/946f26107a913ff77bd39557962d77ca60139e70
Test naked c_char as wellhttps://github.com/python/cpython/pull/126938/commits/19c1b3be326fdd2a1b508f7a82e1c45eb5052a9a
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
19c1b3bhttps://github.com/python/cpython/pull/126938/commits/19c1b3be326fdd2a1b508f7a82e1c45eb5052a9a
https://github.com/python/cpython/tree/19c1b3be326fdd2a1b508f7a82e1c45eb5052a9a
Better name for the testhttps://github.com/python/cpython/pull/126938/commits/dcf97f2b1c53fce8253e853300dead00eb853443
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
dcf97f2https://github.com/python/cpython/pull/126938/commits/dcf97f2b1c53fce8253e853300dead00eb853443
https://github.com/python/cpython/tree/dcf97f2b1c53fce8253e853300dead00eb853443
Add commenthttps://github.com/python/cpython/pull/126938/commits/03bc32b33b3d9da23a4cf16a7ffb648b67d277b3
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
03bc32bhttps://github.com/python/cpython/pull/126938/commits/03bc32b33b3d9da23a4cf16a7ffb648b67d277b3
https://github.com/python/cpython/tree/03bc32b33b3d9da23a4cf16a7ffb648b67d277b3
Reword changeloghttps://github.com/python/cpython/pull/126938/commits/f61faa680c8f41f4de63408f5880e6493eee0912
https://github.com/encukou
encukouhttps://github.com/python/cpython/commits?author=encukou
f61faa6https://github.com/python/cpython/pull/126938/commits/f61faa680c8f41f4de63408f5880e6493eee0912
https://github.com/python/cpython/tree/f61faa680c8f41f4de63408f5880e6493eee0912
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.