| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b63fd4f6-416d-917f-eb90-268622682615 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6CA:356FBF:254D9CA:328EA71:6B003116 |
| html-safe-nonce | d52d1022f14eedbe7f7e9779f8130a7d4bd4b1b7c54d340df07ace227d2ae0d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkNBOjM1NkZCRjoyNTREOUNBOjMyOEVBNzE6NkIwMDMxMTYiLCJ2aXNpdG9yX2lkIjoiNDg4NzE1MzY3NzcxNTkxMDkzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0aefeb7c58e1fcb908d38b0c9b373b28656428425cdc852eaadbbcd65db18876 |
| hovercard-subject-tag | issue:1711307146 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/issues_fragments/issue_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/104533/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37b1f1571bad0a6b7e2bab0f45a6a27972a10bdc136c3d9449d5d1845e6bba6a/python/cpython/issues/104533 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37b1f1571bad0a6b7e2bab0f45a6a27972a10bdc136c3d9449d5d1845e6bba6a/python/cpython/issues/104533 |
| og:image:alt | Turn this: class S(ctypes.Structure): _fields_ = [ ('a', ctypes.c_int), ('b', ctypes.c_char_p) ] Into this: class S(ctypes.Structure): a : ctypes.c_int b : ctypes.c_char_p See discussion on https:/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | orent |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
| Skip to content | https://github.com/python/cpython/issues/104533#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F104533 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| 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 |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | 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/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F104533 |
| 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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/issues/104533 |
| Reload | https://github.com/python/cpython/issues/104533 |
| Reload | https://github.com/python/cpython/issues/104533 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| New issue | https://github.com/login?return_to=https://github.com/python/cpython/issues/104533 |
| New issue | https://github.com/login?return_to=https://github.com/python/cpython/issues/104533 |
| Annotation-based syntax for ctypes structs | https://github.com/python/cpython/issues/104533#top |
| stdlibStandard Library Python modules in the Lib/ directory | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22 |
| topic-ctypes | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-ctypes%22 |
| type-featureA feature request or enhancement | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22 |
| https://github.com/orent |
| orent | https://github.com/orent |
| on May 16, 2023 | https://github.com/python/cpython/issues/104533#issue-1711307146 |
| https://discuss.python.org/t/annotation-based-sugar-for-ctypes/26579 | https://discuss.python.org/t/annotation-based-sugar-for-ctypes/26579 |
| gh-104533: Add a dataclass-like decorator for ctypes structures #153781 | https://github.com/python/cpython/pull/153781 |
| gh-104533: Use @ctypes.util.struct decorator #154031 | https://github.com/python/cpython/pull/154031 |
| gh-104533: Fix @ctypes.util.struct with endian #154038 | https://github.com/python/cpython/pull/154038 |
| gh-104533: Fix @ctypes.util.struct with string annotations #154040 | https://github.com/python/cpython/pull/154040 |
| gh-104533: Update test_ctypes.test_structures #154091 | https://github.com/python/cpython/pull/154091 |
| gh-104533: Fix ctypes test_pointer_proto_missing_argtypes_error() #154169 | https://github.com/python/cpython/pull/154169 |
| Next | https://github.com/python/cpython/issues/104533?timeline_page=1 |
| orent | https://github.com/orent |
| type-featureA feature request or enhancement | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22 |
| on May 16, 2023 | https://github.com/python/cpython/issues/104533#event-9253785726 |
| AlexWaygood | https://github.com/AlexWaygood |
| topic-ctypes | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-ctypes%22 |
| on May 16, 2023 | https://github.com/python/cpython/issues/104533#event-9254621965 |
| https://github.com/zwergziege |
| zwergziege | https://github.com/zwergziege |
| on Jun 18, 2023 | https://github.com/python/cpython/issues/104533#issuecomment-1596008987 |
| python/typing#629 | https://github.com/python/typing/issues/629 |
| https://github.com/orent |
| orent | https://github.com/orent |
| on Jun 18, 2023 | https://github.com/python/cpython/issues/104533#issuecomment-1596085774 |
| https://github.com/junkmd |
| junkmd | https://github.com/junkmd |
| on Aug 13, 2023 | https://github.com/python/cpython/issues/104533#issuecomment-1676203736 |
| ctypes.wintypes.POINT | https://github.com/python/typeshed/blob/df08fcec5f281ba01266869ec55368819aed0a77/stdlib/ctypes/wintypes.pyi#L126-L128 |
| "there is a need to maintain both syntaxes and make them mutually exclusive" | https://discuss.python.org/t/annotation-based-sugar-for-ctypes/26579/8 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Ctypes issues | https://github.com/orgs/python/projects/42 |
| on Jan 1, 2024 | https://github.com/python/cpython/issues/104533#event-14877422532 |
| https://github.com/DrInfiniteExplorer |
| DrInfiniteExplorer | https://github.com/DrInfiniteExplorer |
| on Jan 12, 2024 | https://github.com/python/cpython/issues/104533#issuecomment-1888271397 |
| DrInfiniteExplorer/dtypes | https://github.com/DrInfiniteExplorer/dtypes |
| https://github.com/picnixz |
| picnixz | https://github.com/picnixz |
| on Jun 15, 2024 | https://github.com/python/cpython/issues/104533#issuecomment-2169842061 |
| https://github.com/encukou |
| encukou | https://github.com/encukou |
| on Jan 20, 2025 | https://github.com/python/cpython/issues/104533#issuecomment-2601819216 |
| https://github.com/picnixz |
| picnixz | https://github.com/picnixz |
| on Jan 20, 2025 | https://github.com/python/cpython/issues/104533#issuecomment-2601899573 |
| PEP-637 | https://peps.python.org/637 |
| https://github.com/ZeroIntensity |
| ZeroIntensity | https://github.com/ZeroIntensity |
| on Jan 20, 2025 | https://github.com/python/cpython/issues/104533#issuecomment-2602711055 |
| implemented this | https://github.com/ZeroIntensity/pointers.py/blob/master/src/pointers/structure.py |
| https://github.com/zwergziege |
| zwergziege | https://github.com/zwergziege |
| on Jan 20, 2025 | https://github.com/python/cpython/issues/104533#issuecomment-2602754026 |
| https://github.com/y2kbugger |
| y2kbugger | https://github.com/y2kbugger |
| on Jul 21, 2025 | https://github.com/python/cpython/issues/104533#issuecomment-3097007060 |
| https://fastapi.tiangolo.com/tutorial/query-params-str-validations | https://fastapi.tiangolo.com/tutorial/query-params-str-validations |
| https://discuss.python.org/t/dataclasses-sentinel-to-stop-creating-field-instances/51166/3 | https://discuss.python.org/t/dataclasses-sentinel-to-stop-creating-field-instances/51166/3 |
| https://github.com/aterray |
| aterray | https://github.com/aterray |
| on Dec 11, 2025 | https://github.com/python/cpython/issues/104533#issuecomment-3641627460 |
| https://github.com/0Hughman0 |
| 0Hughman0 | https://github.com/0Hughman0 |
| on Jul 5, 2026 | https://github.com/python/cpython/issues/104533#issuecomment-4887261646 |
| https://github.com/0Hughman0/c_dll_protocol | https://github.com/0Hughman0/c_dll_protocol |
| https://github.com/orent |
| orent | https://github.com/orent |
| on Jul 18, 2026 | https://github.com/python/cpython/issues/104533#issuecomment-5010786931 |
| https://discuss.python.org/t/annotation-based-sugar-for-ctypes/26579 | https://discuss.python.org/t/annotation-based-sugar-for-ctypes/26579 |
| fedonman | https://github.com/fedonman |
| on Jul 18, 2026 | https://github.com/python/cpython/issues/104533#event-28156044392 |
| pythongh-104533: Add a dataclass-like decorator for `ctypes` structur… | https://github.com/fedonman/cpython/commit/df784198414a26acf02817453ee047529e5ad15a |
| pythongh-104533 | https://github.com/python/cpython/issues/104533 |
| df78419 | https://github.com/fedonman/cpython/commit/df784198414a26acf02817453ee047529e5ad15a |
| picnixz | https://github.com/picnixz |
| stdlibStandard Library Python modules in the Lib/ directory | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22 |
| on Jul 18, 2026 | https://github.com/python/cpython/issues/104533#event-28156321334 |
| https://github.com/ZeroIntensity |
| ZeroIntensity | https://github.com/ZeroIntensity |
| on Jul 18, 2026 | https://github.com/python/cpython/issues/104533#issuecomment-5010870220 |
| https://github.com/orent |
| orent | https://github.com/orent |
| on Jul 18, 2026 | https://github.com/python/cpython/issues/104533#issuecomment-5010889278 |
| https://github.com/ZeroIntensity |
| ZeroIntensity | https://github.com/ZeroIntensity |
| on Jul 18, 2026 | https://github.com/python/cpython/issues/104533#issuecomment-5010908354 |
| vstinner | https://github.com/vstinner |
| on Jul 19, 2026 | https://github.com/python/cpython/issues/104533#event-28169410724 |
| pythongh-104533: Fix @ctypes.util.struct with endian | https://github.com/vstinner/cpython/commit/6baf15960025872d868077c262cf4358a0b4b4c1 |
| pythongh-104533 | https://github.com/python/cpython/issues/104533 |
| 6baf159 | https://github.com/vstinner/cpython/commit/6baf15960025872d868077c262cf4358a0b4b4c1 |
| pythongh-104533: Fix @ctypes.util.struct with string annotations | https://github.com/vstinner/cpython/commit/4f6996119ce840510136b5dad1f473f6d8f2ff83 |
| pythongh-104533 | https://github.com/python/cpython/issues/104533 |
| 4f69961 | https://github.com/vstinner/cpython/commit/4f6996119ce840510136b5dad1f473f6d8f2ff83 |
| gh-104533: Fix `@ctypes.util.struct` with string annotations (#154040) | https://github.com/python/cpython/commit/83674483563c83550c87311adb557f8565916ce0 |
| gh-104533 | https://github.com/python/cpython/issues/104533 |
| #154040 | https://github.com/python/cpython/pull/154040 |
| 8367448 | https://github.com/python/cpython/commit/83674483563c83550c87311adb557f8565916ce0 |
| gh-104533: Fix `@ctypes.util.struct` with endian (#154038) | https://github.com/python/cpython/commit/e26005199b17792b47bed10096eaface7fc60b40 |
| gh-104533 | https://github.com/python/cpython/issues/104533 |
| #154038 | https://github.com/python/cpython/pull/154038 |
| e260051 | https://github.com/python/cpython/commit/e26005199b17792b47bed10096eaface7fc60b40 |
| gh-104533: Update test_ctypes.test_structures (#154091) | https://github.com/python/cpython/commit/20b50f8ec4602fb108e029e6f84b2a19294a95d2 |
| gh-104533 | https://github.com/python/cpython/issues/104533 |
| #154091 | https://github.com/python/cpython/pull/154091 |
| 20b50f8 | https://github.com/python/cpython/commit/20b50f8ec4602fb108e029e6f84b2a19294a95d2 |
| gh-104533: Use `@ctypes.util.struct` decorator (#154031) | https://github.com/python/cpython/commit/ee50ed3ed010e26495300778b30b57da5cadc933 |
| gh-104533 | https://github.com/python/cpython/issues/104533 |
| #154031 | https://github.com/python/cpython/pull/154031 |
| ee50ed3 | https://github.com/python/cpython/commit/ee50ed3ed010e26495300778b30b57da5cadc933 |
| gh-104533: Fix ctypes test_pointer_proto_missing_argtypes_error() (#1… | https://github.com/python/cpython/commit/da5713c489c63622c0fdd25343a7ea7293a66e68 |
| gh-104533 | https://github.com/python/cpython/issues/104533 |
| #1… | https://github.com/python/cpython/pull/154169 |
| da5713c | https://github.com/python/cpython/commit/da5713c489c63622c0fdd25343a7ea7293a66e68 |
| https://github.com/fedonman |
| fedonman | https://github.com/fedonman |
| on Sep 23, 2026 | https://github.com/python/cpython/issues/104533#issuecomment-5787061831 |
| @ZeroIntensity | https://github.com/ZeroIntensity |
| https://github.com/ZeroIntensity |
| ZeroIntensity | https://github.com/ZeroIntensity |
| on Sep 23, 2026 | https://github.com/python/cpython/issues/104533#issuecomment-5787396431 |
| Sign up for free | https://github.com/signup?return_to=https://github.com/python/cpython/issues/104533 |
| Sign in to comment | https://github.com/login?return_to=https://github.com/python/cpython/issues/104533 |
| stdlibStandard Library Python modules in the Lib/ directory | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22 |
| topic-ctypes | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-ctypes%22 |
| type-featureA feature request or enhancement | https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22 |
| Ctypes issues | https://github.com/orgs/python/projects/42 |
|
| 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 |