gh-92898: Make _Py_Cast C++ version compatible with cast operator#92951
gh-92898: Make _Py_Cast C++ version compatible with cast operator#92951corona10 merged 1 commit intopython:mainfrom
Conversation
cf741a4 to
3f287c5
Compare
|
cc @vstinner |
corona10
left a comment
There was a problem hiding this comment.
Would you like to add NEWS.d about compatible?
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
e275be9 to
2e6b74a
Compare
|
@corona10 I'm not sure, there's already an entry And this is just patching that entry |
|
I am now seeing errors compiling numpy with this branch: |
|
@tacaswell indeed. I can work around this :-) |
|
@serge-sans-paille I should note this is with numpy main, I have not gone back to see if released versions work or not. |
Use the adequate kind of cast based on the macro argument: const ref, cont pointer, ref or pointer. This should be compatible with C++ overloads. Fix python#92898
2e6b74a to
636d461
Compare
|
@tacaswell should be good now? |
|
Through numpy, starting scipy. Will update if the whole environment builds cleanly (including greenlet main). |
|
It built clean including master-branch greenlet 👍🏻 |
|
Thanks @serge-sans-paille for the PR, and @corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Sorry @serge-sans-paille and @corona10, I had trouble checking out the |
… operator (pythongh-92951) (cherry picked from commit 5b71b51) Co-authored-by: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
|
I created a follow-up PR: #93111 |
|
Thanks @serge-sans-paille for the PR, and @corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
Sorry, @serge-sans-paille and @corona10, I could not cleanly backport this to |
Use the adequate kind of cast based on the macro argument: const ref, cont
pointer, ref or pointer.
This should be compatible with C++ overloads.
Fix #92898