Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-61103: don't use native complex types in ctypes#133237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…struct moduleEach complex type interpreted as an array type containing exactly twoelements of the corresponding real type (real and imaginary parts,respectively).
…ctypes* drop _complex.h header* use appropriate real arrays to replace complex types
Uh oh!
There was an error while loading.Please reload this page.
dalcinl commentedMay 1, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@skirpichev Thanks, it looks great. IMHO, and despite your doubts about worthiness, this should be merged. Things are simpler now, you removed lots of code, and a private header.
|
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Lisandro Dalcin <dalcinl@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Misc/NEWS.d/next/Library/2025-04-25-16-20-49.gh-issue-121249.uue2nK.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…ue2nK.rstCo-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
bedevere-bot commentedMay 2, 2025
🤖 New build scheduled with the buildbot fleet by@encukou for commit071d57e 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F133237%2Fmerge If you want to schedule another build, you need to add the🔨 test-with-buildbots label again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM, merge if the buildbots don't complain.
Ah, I missed that note, sorry! |
Done. See also minor docs correction in#133249 |
Failure in test_frame.py on s390x seems unrelated. |
All failures are related to test_frame.py. @encukou, I left here only one change, related to the struct module (cosmetic change in |
@dalcinl, let us know if you think that linked issue should stay open after merging this. |
@skirpichev I think you can close it. AFAICT, all concerns have been addressed. Many thanks for your hard work in implementing all these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks good, thank you!
8d0e07e
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
📚 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.