| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7674aa5c-72ef-211d-a2f3-cca16874d376 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D93A:6BE0D:110D554:16BEDDA:6969981F |
| html-safe-nonce | 67411817ebee92ded1e1eb5684b51ae19d5c3f7b2d6e1985aab6c56e6d9be67e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTNBOjZCRTBEOjExMEQ1NTQ6MTZCRUREQTo2OTY5OTgxRiIsInZpc2l0b3JfaWQiOiI0ODgxMjA4MzMwNTU1MDcwNDk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9755c15bf08b278c9b84b22c2b426b07e29607b1b3f2523ae0342c58818f18fc |
| hovercard-subject-tag | pull_request:167324190 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/5561/files |
| twitter:image | https://avatars.githubusercontent.com/u/425260?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/425260?s=400&v=4 |
| og:image:alt | The summary of this diff is that it:
adds a _ctypes_alloc_format_padding function to append strings like 37x to a format string to indicate 37 padding bytes
removes the branches that amount to &qu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/5561/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5561%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5561%2Ffiles |
|
Sign up
| https://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 |
| Reload | https://github.com/python/cpython/pull/5561/files |
| Reload | https://github.com/python/cpython/pull/5561/files |
| Reload | https://github.com/python/cpython/pull/5561/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/5561/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/5561/files |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| mdickinson | https://github.com/mdickinson |
| python:main | https://github.com/python/cpython/tree/main |
| eric-wieser:ctypes-padding | https://github.com/eric-wieser/cpython/tree/ctypes-padding |
|
Conversation
37
| https://github.com/python/cpython/pull/5561 |
|
Commits
10
| https://github.com/python/cpython/pull/5561/commits |
|
Checks
0
| https://github.com/python/cpython/pull/5561/checks |
|
Files changed
| https://github.com/python/cpython/pull/5561/files |
| Please reload this page | https://github.com/python/cpython/pull/5561/files |
|
gh-76961: Fix the PEP3118 format string for ctypes.Structure
| https://github.com/python/cpython/pull/5561/files#top |
|
Show all changes
10 commits
| https://github.com/python/cpython/pull/5561/files |
|
ac4e5bb
bpo-32780: Fix the PEP3118 format string for ctypes.Structure
eric-wieser Feb 6, 2018
| https://github.com/python/cpython/pull/5561/commits/ac4e5bb97625c4f3c545911de31de19baa36caed |
|
e6021e1
Merge branch 'master' into ctypes-padding
eric-wieser Nov 28, 2019
| https://github.com/python/cpython/pull/5561/commits/e6021e1add19b308d7326e92e77d9745786a4cc3 |
|
97e9d95
Merge remote-tracking branch 'upstream/main' into ctypes-padding
eric-wieser Jul 7, 2022
| https://github.com/python/cpython/pull/5561/commits/97e9d9513aab837e92d620593fc2f9a3f7be9c3b |
|
6bf5a25
remove unused variable, extend documentation
eric-wieser Jul 8, 2022
| https://github.com/python/cpython/pull/5561/commits/6bf5a25bcb3ac61938570aaf45b698ef28fea4d4 |
|
3b7f14f
comment
eric-wieser Jul 8, 2022
| https://github.com/python/cpython/pull/5561/commits/3b7f14fb2530cf569187d882eb24255e3ba56189 |
|
27b1601
fix incorrect name and documentation
eric-wieser Aug 15, 2022
| https://github.com/python/cpython/pull/5561/commits/27b1601038a87f76f32bffbabf1877ff9345a520 |
|
e300e16
remove the heap allocation as requested
eric-wieser Aug 15, 2022
| https://github.com/python/cpython/pull/5561/commits/e300e164394695c5219189fb178cb6849de4754f |
|
7e8b4f9
Merge branch 'main' into ctypes-padding
eric-wieser Dec 23, 2022
| https://github.com/python/cpython/pull/5561/commits/7e8b4f9cb523f81202065bdeebb19badcf87032d |
|
4de7a8a
Update Misc/NEWS.d/next/Core and Builtins/2018-02-05-21-54-46.bpo-327…
eric-wieser Feb 5, 2023
| https://github.com/python/cpython/pull/5561/commits/4de7a8a2917e8370d2a0a16beeac178a66e74e63 |
|
26311ae
Apply suggestions from code review
eric-wieser Feb 5, 2023
| https://github.com/python/cpython/pull/5561/commits/26311aecd38ae115f88b38708bc65eacbbcab651 |
|
Clear filters
| https://github.com/python/cpython/pull/5561/files |
| Please reload this page | https://github.com/python/cpython/pull/5561/files |
| Please reload this page | https://github.com/python/cpython/pull/5561/files |
|
ctypes.rst
| https://github.com/python/cpython/pull/5561/files#diff-13b210c267218100dc49e485ac4735e44224ae266e36c35f1ac6bf774f59e60d |
|
test_pep3118.py
| https://github.com/python/cpython/pull/5561/files#diff-4464daec36ba9851ac1a02a8135468fd09e81dbe1fe008f88ec686081ea29bfd |
|
2018-02-05-21-54-46.bpo-32780.Dtiz8z.rst
| https://github.com/python/cpython/pull/5561/files#diff-afd9dff1729178d0fd058b8e855d0f40b438697534599d706602bb980f372801 |
|
stgdict.c
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
| Doc/library/ctypes.rst | https://github.com/python/cpython/pull/5561/files#diff-13b210c267218100dc49e485ac4735e44224ae266e36c35f1ac6bf774f59e60d |
|
View file
| https://github.com/eric-wieser/cpython/blob/26311aecd38ae115f88b38708bc65eacbbcab651/Doc/library/ctypes.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5561/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5561/files#diff-13b210c267218100dc49e485ac4735e44224ae266e36c35f1ac6bf774f59e60d |
|
| https://github.com/python/cpython/pull/5561/files#diff-13b210c267218100dc49e485ac4735e44224ae266e36c35f1ac6bf774f59e60d |
| Lib/test/test_ctypes/test_pep3118.py | https://github.com/python/cpython/pull/5561/files#diff-4464daec36ba9851ac1a02a8135468fd09e81dbe1fe008f88ec686081ea29bfd |
|
View file
| https://github.com/eric-wieser/cpython/blob/26311aecd38ae115f88b38708bc65eacbbcab651/Lib/test/test_ctypes/test_pep3118.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5561/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5561/files#diff-4464daec36ba9851ac1a02a8135468fd09e81dbe1fe008f88ec686081ea29bfd |
|
| https://github.com/python/cpython/pull/5561/files#diff-4464daec36ba9851ac1a02a8135468fd09e81dbe1fe008f88ec686081ea29bfd |
|
| https://github.com/python/cpython/pull/5561/files#diff-4464daec36ba9851ac1a02a8135468fd09e81dbe1fe008f88ec686081ea29bfd |
|
| https://github.com/python/cpython/pull/5561/files#diff-4464daec36ba9851ac1a02a8135468fd09e81dbe1fe008f88ec686081ea29bfd |
| Misc/NEWS.d/next/Core and Builtins/2018-02-05-21-54-46.bpo-32780.Dtiz8z.rst | https://github.com/python/cpython/pull/5561/files#diff-afd9dff1729178d0fd058b8e855d0f40b438697534599d706602bb980f372801 |
|
View file
| https://github.com/eric-wieser/cpython/blob/26311aecd38ae115f88b38708bc65eacbbcab651/Misc/NEWS.d/next/Core%20and%20Builtins/2018-02-05-21-54-46.bpo-32780.Dtiz8z.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5561/{{ revealButtonHref }} |
| Modules/_ctypes/stgdict.c | https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
View file
| https://github.com/eric-wieser/cpython/blob/26311aecd38ae115f88b38708bc65eacbbcab651/Modules/_ctypes/stgdict.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5561/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com/python/cpython/pull/5561/files#diff-a75c1edda81c7e4ede83ebbd84c2638023c1b91de15b504f574ba7e08b8b0883 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |