-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-92898: Make _Py_Cast C++ version compatible with cast operator #92951
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cf741a4
to
3f287c5
Compare
cc @vstinner |
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.
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