-
Notifications
You must be signed in to change notification settings - Fork 763
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
pypy: disable PyFunction #2542
pypy: disable PyFunction #2542
Conversation
8d3d2fe
to
d7f1a0d
Compare
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.
This needs a rebase on the clippy fixes, I think.
d867711
to
79942f8
Compare
79942f8
to
c58ff77
Compare
Is there a downside to making this an opaque type? Will this limit what can be done with PyO3 and PyPy? |
Disabling this doesn't have a huge impact, it just means that users cannot check for this type using PyO3's safe APIs. They can still use the raw The problem is that PyO3's type modelling assumes that a |
PyPy tries to implement the c-api emulation on a "need to have" basis. Do you know what project was hitting crashes, so I can interact with them and make the changes necessary to make the code work? |
Sure thing - it was this code in |
right, that is the |
I think if PyO3 exposed the |
Apparently this is an incomplete definition so it's not safe to use, see https://foss.heptapod.net/pypy/pypy/-/issues/3776