| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5c9440d0-30e3-9cd8-421c-fbef1755bae9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DA36:382318:EA8A67:125FB6F:6B0236A1 |
| html-safe-nonce | af0859038ba6c241643ae4d62fbf5148bc3d063eac63ff73409bf7a634b37975 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTM2OjM4MjMxODpFQThBNjc6MTI1RkI2Rjo2QjAyMzZBMSIsInZpc2l0b3JfaWQiOiI2MTQxNzcyNDU3MzM5NjY0MDMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c83476ce00361fdadc7df59b42e3dbef88f807e2ef7e77173886a96983cc0be0 |
| hovercard-subject-tag | pull_request:2260474994 |
| 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/128490/files |
| twitter:image | https://avatars.githubusercontent.com/u/49501366?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/49501366?s=400&v=4 |
| og:image:alt | I say "per-object" as in, using a single ctypes object is thread-safe if that's the only object accessing the memory. IMO, access to arbitrary memory across different pointer objects ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/128490/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128490%2Ffiles |
| 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%2Fpull%2F128490%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/128490/files |
| Reload | https://github.com/python/cpython/pull/128490/files |
| Reload | https://github.com/python/cpython/pull/128490/files |
| 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 |
| 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 |
| encukou | https://github.com/encukou |
| python:main | https://github.com/python/cpython/tree/main |
| ZeroIntensity:ctypes-b-ptr | https://github.com/ZeroIntensity/cpython/tree/ctypes-b-ptr |
|
Conversation
50
| https://github.com/python/cpython/pull/128490 |
|
Commits
24
| https://github.com/python/cpython/pull/128490/commits |
|
Checks
0
| https://github.com/python/cpython/pull/128490/checks |
|
Files changed
| https://github.com/python/cpython/pull/128490/files |
| Please reload this page | https://github.com/python/cpython/pull/128490/files |
|
gh-128182: Add per-object memory access synchronization to ctypes
| https://github.com/python/cpython/pull/128490/files#top |
|
Show all changes
24 commits
| https://github.com/python/cpython/pull/128490/files |
|
3bb21ff
Lock pointer reads and writes in ctypes.
ZeroIntensity Jan 4, 2025
| https://github.com/python/cpython/pull/128490/commits/3bb21fff034fb071124b78eb9b45c0d32783d3f9 |
|
8c4c49a
Add a test.
ZeroIntensity Jan 4, 2025
| https://github.com/python/cpython/pull/128490/commits/8c4c49a4c1862274b66c620fbbd72f8e807e42ef |
|
da293c1
Fix the test.
ZeroIntensity Jan 4, 2025
| https://github.com/python/cpython/pull/128490/commits/da293c14262a946b00c08fa45aa3ea7dd2551fda |
|
d01b757
Add blurb.
ZeroIntensity Jan 4, 2025
| https://github.com/python/cpython/pull/128490/commits/d01b757f596d97987f64e73d413fdf551b7c43fd |
|
8bb980f
Add a lock for generic helper functions.
ZeroIntensity Jan 4, 2025
| https://github.com/python/cpython/pull/128490/commits/8bb980f519854417ebb28c1550dd8c57e0b0f4a3 |
|
d60f2e2
Add documentation note.
ZeroIntensity Jan 4, 2025
| https://github.com/python/cpython/pull/128490/commits/d60f2e237d4f8ee4265c873186e3dbfb6c93a29b |
|
de4c4ea
Fix compiler warning on GIL-ful builds.
ZeroIntensity Jan 4, 2025
| https://github.com/python/cpython/pull/128490/commits/de4c4eabe421b688cf3d50d10fd14f163500a28a |
|
23d8e21
Fix MSVC compiler warnings.
ZeroIntensity Jan 4, 2025
| https://github.com/python/cpython/pull/128490/commits/23d8e21f7c716d164a71dbe39dd1f51cc86a8bea |
|
bdee2b2
Fix MSVC compiler warnings (actually this time)
ZeroIntensity Jan 4, 2025
| https://github.com/python/cpython/pull/128490/commits/bdee2b253527dfd2a3407a4349d10ab0c545473b |
|
9f272d9
Apply suggestions from code review
ZeroIntensity Jan 6, 2025
| https://github.com/python/cpython/pull/128490/commits/9f272d94a848ab109322477e2a82cfeb5bd5ac2f |
|
32a885f
Fix Sphinx code block.
ZeroIntensity Jan 6, 2025
| https://github.com/python/cpython/pull/128490/commits/32a885feee29c3a4b4397a50016d3c186478e119 |
|
1c92b4b
Flatten call to PyUnicode_AsWideChar
ZeroIntensity Jan 6, 2025
| https://github.com/python/cpython/pull/128490/commits/1c92b4bacaabff63539ad09cb2f882f87075080e |
|
ff34cc2
Fix lock.
ZeroIntensity Jan 6, 2025
| https://github.com/python/cpython/pull/128490/commits/ff34cc2c49e26e18b31c7f4c0a934b33214f9c52 |
|
804f1b6
Fix indentation.
ZeroIntensity Jan 6, 2025
| https://github.com/python/cpython/pull/128490/commits/804f1b65304767059bf645a5b6e9bcb19f756e79 |
|
bae3c5b
Revert "Flatten call to PyUnicode_AsWideChar"
ZeroIntensity Jan 6, 2025
| https://github.com/python/cpython/pull/128490/commits/bae3c5bb27f54f077cf0d2afa5931fb1a7d86552 |
|
d720d9a
Properly flatten call to PyUnicode_AsWideChar
ZeroIntensity Jan 6, 2025
| https://github.com/python/cpython/pull/128490/commits/d720d9ab18dc506f2bb36fee3ea5b5145483159b |
|
04b3252
Fix indentation.
ZeroIntensity Jan 6, 2025
| https://github.com/python/cpython/pull/128490/commits/04b32527c45cb1fb32d10fa175814606ad5f20e4 |
|
6401bbc
Clarify comment
ZeroIntensity Jan 6, 2025
| https://github.com/python/cpython/pull/128490/commits/6401bbcecfc204ff2984a41e59122b5abb8efbca |
|
9d35e86
Switch to critical sections.
ZeroIntensity Jan 8, 2025
| https://github.com/python/cpython/pull/128490/commits/9d35e86f68fc8d4fbccb2660ea9899d875e5c8e8 |
|
ce94234
Update test_arrays.py
ZeroIntensity Jan 9, 2025
| https://github.com/python/cpython/pull/128490/commits/ce942340bd905a6493200d673ce43151bd90f40f |
|
d6a4bc8
Update Doc/library/ctypes.rst
ZeroIntensity Jan 9, 2025
| https://github.com/python/cpython/pull/128490/commits/d6a4bc846a5932632c40643863c4d651b79ad4ce |
|
5a4c1d6
Update Modules/_ctypes/_ctypes.c
ZeroIntensity Jan 9, 2025
| https://github.com/python/cpython/pull/128490/commits/5a4c1d69263411bbcbea9a8513aba3ea1cfe9155 |
|
774a6ec
Update Modules/_ctypes/_ctypes.c
ZeroIntensity Jan 9, 2025
| https://github.com/python/cpython/pull/128490/commits/774a6ec19b259888b8254f56419f36622545eb8a |
|
c8f2cd3
Remove silly seealso.
ZeroIntensity Jan 10, 2025
| https://github.com/python/cpython/pull/128490/commits/c8f2cd3e3d65987af50d4bbe418dd411b67c6921 |
|
Clear filters
| https://github.com/python/cpython/pull/128490/files |
| Please reload this page | https://github.com/python/cpython/pull/128490/files |
| Please reload this page | https://github.com/python/cpython/pull/128490/files |
|
ctypes.rst
| https://github.com/python/cpython/pull/128490/files#diff-13b210c267218100dc49e485ac4735e44224ae266e36c35f1ac6bf774f59e60d |
|
test_arrays.py
| https://github.com/python/cpython/pull/128490/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa |
|
2025-01-04-11-32-46.gh-issue-128182.SJ2Zsa.rst
| https://github.com/python/cpython/pull/128490/files#diff-cce9e9aabb7fe6d4a2010285828af862015decc918e34d0a868bb8385a024a75 |
|
_ctypes.c
| https://github.com/python/cpython/pull/128490/files#diff-402bc51df93eaaca2e2f2551ec0206d8af190722ae4703c178554b565d7c14b4 |
|
ctypes.h
| https://github.com/python/cpython/pull/128490/files#diff-53f61eb1ad6b25b3aff25b54b4df5004a1f1137ca1d2aae4c7e31fc00ec6e9f8 |
| Doc/library/ctypes.rst | https://github.com/python/cpython/pull/128490/files#diff-13b210c267218100dc49e485ac4735e44224ae266e36c35f1ac6bf774f59e60d |
|
View file
| https://github.com/ZeroIntensity/cpython/blob/c8f2cd3e3d65987af50d4bbe418dd411b67c6921/Doc/library/ctypes.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/128490/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/128490/files#diff-13b210c267218100dc49e485ac4735e44224ae266e36c35f1ac6bf774f59e60d |
| picnixz | https://github.com/picnixz |
| Jan 6, 2025 | https://github.com/python/cpython/pull/128490/files#r1904004430 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/128490/files |
| ZeroIntensity | https://github.com/ZeroIntensity |
| Jan 6, 2025 | https://github.com/python/cpython/pull/128490/files#r1904244602 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/128490/files |
|
| https://github.com/python/cpython/pull/128490/files#diff-13b210c267218100dc49e485ac4735e44224ae266e36c35f1ac6bf774f59e60d |
| Lib/test/test_ctypes/test_arrays.py | https://github.com/python/cpython/pull/128490/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa |
|
View file
| https://github.com/ZeroIntensity/cpython/blob/c8f2cd3e3d65987af50d4bbe418dd411b67c6921/Lib/test/test_ctypes/test_arrays.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/128490/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/128490/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa |
|
| https://github.com/python/cpython/pull/128490/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa |
|
| https://github.com/python/cpython/pull/128490/files#diff-d13e55d9a263d0a00ab95cf8098b581526a9e7cda4076a1704bde347033a41fa |
| Please reload this page | https://github.com/python/cpython/pull/128490/files |
| Misc/NEWS.d/next/Library/2025-01-04-11-32-46.gh-issue-128182.SJ2Zsa.rst | https://github.com/python/cpython/pull/128490/files#diff-cce9e9aabb7fe6d4a2010285828af862015decc918e34d0a868bb8385a024a75 |
|
View file
| https://github.com/ZeroIntensity/cpython/blob/c8f2cd3e3d65987af50d4bbe418dd411b67c6921/Misc/NEWS.d/next/Library/2025-01-04-11-32-46.gh-issue-128182.SJ2Zsa.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/128490/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/128490/files |
|
| 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 |