René's URL Explorer Experiment


Title: gh-61103: don't use native complex types in ctypes by skirpichev · Pull Request #133237 · python/cpython · GitHub

Open Graph Title: gh-61103: don't use native complex types in ctypes by skirpichev · Pull Request #133237 · python/cpython

X Title: gh-61103: don't use native complex types in ctypes by skirpichev · Pull Request #133237 · python/cpython

Description: drop _complex.h header use appropriate real arrays to replace complex types Issue: gh-61103 📚 Documentation preview 📚: https://cpython-previews--133237.org.readthedocs.build/ Note, that Py_FFI_SUPPORT_C_COMPLEX check configure check imply support for complex types. So, Py_HAVE_C_COMPLEX check is redundant. Though, I'm not sure if it worth removing.

Open Graph Description: drop _complex.h header use appropriate real arrays to replace complex types Issue: gh-61103 📚 Documentation preview 📚: https://cpython-previews--133237.org.readthedocs.build/ Note, that Py...

X Description: drop _complex.h header use appropriate real arrays to replace complex types Issue: gh-61103 📚 Documentation preview 📚: https://cpython-previews--133237.org.readthedocs.build/ Note, that Py...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c27e2d75-01f7-91cf-9e8f-b7e8e9675879
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD63E:24C5C6:1A348FE:22CA0D4:6A51D35B
html-safe-noncea2776690cb1d01373a36831c476d10919d2dc80b9e59f42da9378657093755b9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjNFOjI0QzVDNjoxQTM0OEZFOjIyQ0EwRDQ6NkE1MUQzNUIiLCJ2aXNpdG9yX2lkIjoiODU5NzY3MDU3MjkxMzE4NTYyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac825f98df826536e65672e51f976c60d74cfc78399893da5c9a6ebe2d79c555d6
hovercard-subject-tagpull_request:2493160514
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/133237/files
twitter:imagehttps://avatars.githubusercontent.com/u/2155800?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2155800?s=400&v=4
og:image:altdrop _complex.h header use appropriate real arrays to replace complex types Issue: gh-61103 📚 Documentation preview 📚: https://cpython-previews--133237.org.readthedocs.build/ Note, that Py...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/133237/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F133237%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F133237%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
Reloadhttps://github.com/python/cpython/pull/133237/files
Reloadhttps://github.com/python/cpython/pull/133237/files
Reloadhttps://github.com/python/cpython/pull/133237/files
Please reload this pagehttps://github.com/python/cpython/pull/133237/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/133237/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality 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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
skirpichev:no_complex.h/61103https://github.com/skirpichev/cpython/tree/no_complex.h/61103
Conversation 20 https://github.com/python/cpython/pull/133237
Commits 6 https://github.com/python/cpython/pull/133237/commits
Checks 0 https://github.com/python/cpython/pull/133237/checks
Files changed https://github.com/python/cpython/pull/133237/files
Please reload this pagehttps://github.com/python/cpython/pull/133237/files
gh-61103: don't use native complex types in ctypes https://github.com/python/cpython/pull/133237/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/133237/files
66d7e54 gh-121249: make complex types available unconditionally in the struct… skirpichev Apr 24, 2025 https://github.com/python/cpython/pull/133237/commits/66d7e542e50589c17d188cbdfc96e791344ac360
6a20faf gh-61103: don't use native complex types to implement F/D/G in ctypes skirpichev Apr 30, 2025 https://github.com/python/cpython/pull/133237/commits/6a20fafe48937b1adf0f8932c230e2a0e7c5ba03
8bbed73 Update Modules/_struct.c skirpichev May 1, 2025 https://github.com/python/cpython/pull/133237/commits/8bbed73bf23f4a391526dcdaa9af4872d9f3dd5b
f1fa51b Apply suggestions from code review skirpichev May 1, 2025 https://github.com/python/cpython/pull/133237/commits/f1fa51bab386a2323aefc9e82570866361c6ce4a
071d57e Update Misc/NEWS.d/next/Library/2025-04-25-16-20-49.gh-issue-121249.u… skirpichev May 1, 2025 https://github.com/python/cpython/pull/133237/commits/071d57e8cfcab70c07aa7107841f7d8f1c5e89a5
b18d895 Merge branch 'main' into no_complex.h/61103 skirpichev May 2, 2025 https://github.com/python/cpython/pull/133237/commits/b18d8957a79d97888c2489bba3bea542d45d286e
Clear filters https://github.com/python/cpython/pull/133237/files
Please reload this pagehttps://github.com/python/cpython/pull/133237/files
Please reload this pagehttps://github.com/python/cpython/pull/133237/files
Makefile.pre.in https://github.com/python/cpython/pull/133237/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
_complex.h https://github.com/python/cpython/pull/133237/files#diff-d887da08e76685406a0e010b3e97c6098aaf74f12fde4601ff01c20f9f020e47
_ctypes_test.c https://github.com/python/cpython/pull/133237/files#diff-1e8f35693c2fa62ceeba89a62ec7635326339a5fc022ab03146276e3bebae3dd
callproc.c https://github.com/python/cpython/pull/133237/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
cfield.c https://github.com/python/cpython/pull/133237/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
ctypes.h https://github.com/python/cpython/pull/133237/files#diff-53f61eb1ad6b25b3aff25b54b4df5004a1f1137ca1d2aae4c7e31fc00ec6e9f8
_struct.c https://github.com/python/cpython/pull/133237/files#diff-13025e64470dd9f01cdfcf972b3aa2712511d83f8db49d587d85b43b2946e87b
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L85
Makefile.pre.inhttps://github.com/python/cpython/pull/133237/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
View file https://github.com/skirpichev/cpython/blob/b18d8957a79d97888c2489bba3bea542d45d286e/Makefile.pre.in
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/133237/{{ revealButtonHref }}
https://github.com/python/cpython/pull/133237/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
https://github.com/python/cpython/pull/133237/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
Modules/_complex.hhttps://github.com/python/cpython/pull/133237/files#diff-d887da08e76685406a0e010b3e97c6098aaf74f12fde4601ff01c20f9f020e47
View file https://github.com/python/cpython/blob/987e45e6326c6174fb7a300f44b9d8e4e26370c9/Modules/_complex.h
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/python/cpython/pull/133237/files
Modules/_ctypes/_ctypes_test.chttps://github.com/python/cpython/pull/133237/files#diff-1e8f35693c2fa62ceeba89a62ec7635326339a5fc022ab03146276e3bebae3dd
View file https://github.com/skirpichev/cpython/blob/b18d8957a79d97888c2489bba3bea542d45d286e/Modules/_ctypes/_ctypes_test.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/133237/{{ revealButtonHref }}
https://github.com/python/cpython/pull/133237/files#diff-1e8f35693c2fa62ceeba89a62ec7635326339a5fc022ab03146276e3bebae3dd
https://github.com/python/cpython/pull/133237/files#diff-1e8f35693c2fa62ceeba89a62ec7635326339a5fc022ab03146276e3bebae3dd
Modules/_ctypes/callproc.chttps://github.com/python/cpython/pull/133237/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
View file https://github.com/skirpichev/cpython/blob/b18d8957a79d97888c2489bba3bea542d45d286e/Modules/_ctypes/callproc.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/133237/{{ revealButtonHref }}
https://github.com/python/cpython/pull/133237/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
https://github.com/python/cpython/pull/133237/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
https://github.com/python/cpython/pull/133237/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
https://github.com/python/cpython/pull/133237/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/133237/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
View file https://github.com/skirpichev/cpython/blob/b18d8957a79d97888c2489bba3bea542d45d286e/Modules/_ctypes/cfield.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/133237/{{ revealButtonHref }}
https://github.com/python/cpython/pull/133237/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
https://github.com/python/cpython/pull/133237/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
https://github.com/python/cpython/pull/133237/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
https://github.com/python/cpython/pull/133237/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
https://github.com/python/cpython/pull/133237/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
https://github.com/python/cpython/pull/133237/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Modules/_ctypes/ctypes.hhttps://github.com/python/cpython/pull/133237/files#diff-53f61eb1ad6b25b3aff25b54b4df5004a1f1137ca1d2aae4c7e31fc00ec6e9f8
View file https://github.com/skirpichev/cpython/blob/b18d8957a79d97888c2489bba3bea542d45d286e/Modules/_ctypes/ctypes.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/133237/{{ revealButtonHref }}
https://github.com/python/cpython/pull/133237/files#diff-53f61eb1ad6b25b3aff25b54b4df5004a1f1137ca1d2aae4c7e31fc00ec6e9f8
https://github.com/python/cpython/pull/133237/files#diff-53f61eb1ad6b25b3aff25b54b4df5004a1f1137ca1d2aae4c7e31fc00ec6e9f8
https://github.com/python/cpython/pull/133237/files#diff-53f61eb1ad6b25b3aff25b54b4df5004a1f1137ca1d2aae4c7e31fc00ec6e9f8
https://github.com/python/cpython/pull/133237/files#diff-53f61eb1ad6b25b3aff25b54b4df5004a1f1137ca1d2aae4c7e31fc00ec6e9f8
Modules/_struct.chttps://github.com/python/cpython/pull/133237/files#diff-13025e64470dd9f01cdfcf972b3aa2712511d83f8db49d587d85b43b2946e87b
View file https://github.com/skirpichev/cpython/blob/b18d8957a79d97888c2489bba3bea542d45d286e/Modules/_struct.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/133237/{{ revealButtonHref }}
https://github.com/python/cpython/pull/133237/files#diff-13025e64470dd9f01cdfcf972b3aa2712511d83f8db49d587d85b43b2946e87b
https://github.com/python/cpython/pull/133237/files#diff-13025e64470dd9f01cdfcf972b3aa2712511d83f8db49d587d85b43b2946e87b
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.