GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — gh-61103: support double complex (_Complex) type in ctypes by skirpichev · Pull Request #120894 · python/cpython Conversation
|
I'd prefer having a separate PR because we might need aliases in case
I think it might be indeed a good alternative, because otherwise you need to find good 1-char names for
I'd say in a separate PR since there is a translation of ctypes format to PEP 3118 names (where complex numbers are represented by 'Z'). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Bénédikt Tran <[email protected]>
45f8544 to
013765e
Compare
013765e to
f9c709c
Compare
|
Use a force-push only to fix typo's or revert a merge. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thank you for advice. Usually I don't do this. I hope this time force-push was OK, as it's restricted to unreviewed commits. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
It's less bad if no-one commented on those commits, but it's still more work to figure out what you changed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* add configure test for _Complex type * define HAVE_C_COMPLEX * move workarounds for buggy implementations to Module/_complex.h
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit e9cab4a 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Well, one failure seems to be related: Looking on the libffi sources, it seems that FFI_TYPE_COMPLEX is available unconditionally, even if platform doesn't support interfaces to _Complex (for sparc it works since v3.3). We should check FFI_TARGET_HAS_COMPLEX_TYPE instead. I'll update PR when build finish. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
!buildbot AMD64 Fedora Rawhide PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 6d5bf66 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
!buildbot AMD64 Fedora Rawhide PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 6d5bf66 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh, Rawhide failure is unrelated: "No space left on device". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
!buildbot PPC64LE CentOS9 PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 6d5bf66 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
!buildbot PPC64LE Fedora Stable Clang PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 6d5bf66 🤖 The command will test the builders whose names match following regular expression: The builders matched are:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @vstinner for commit 6d5bf66 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @skirpichev, I merged your PR. I checked remaining buildbot failures: they are unrelated to the change. @skirpichev: @erlend-aasland has concerns about relative |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for reviews and patience.
Yep, here; I'll open an issue (I think that build failures in this pr already don't need this;)). There are other includes, besides |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…hon#120894) Example: ```pycon >>> import ctypes >>> ctypes.__STDC_IEC_559_COMPLEX__ 1 >>> libm = ctypes.CDLL('libm.so.6') >>> libm.clog.argtypes = [ctypes.c_double_complex] >>> libm.clog.restype = ctypes.c_double_complex >>> libm.clog(1+1j) (0.34657359027997264+0.7853981633974483j) ``` Co-authored-by: Nice Zombies <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…hon#120894) Example: ```pycon >>> import ctypes >>> ctypes.__STDC_IEC_559_COMPLEX__ 1 >>> libm = ctypes.CDLL('libm.so.6') >>> libm.clog.argtypes = [ctypes.c_double_complex] >>> libm.clog.restype = ctypes.c_double_complex >>> libm.clog(1+1j) (0.34657359027997264+0.7853981633974483j) ``` Co-authored-by: Nice Zombies <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.