-
Notifications
You must be signed in to change notification settings - Fork 2.2k
PyPy3 support #2146
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
PyPy3 support #2146
Conversation
6e62cc2
to
6ae2c87
Compare
30c4e6b
to
ecc2863
Compare
6d4d308
to
501059a
Compare
|
Maybe defining |
It should, as long as |
Ah, thanks. I think
Somebody more familiar with |
ping |
Ok, so what kind of feedback do you require? It's been ages since I looked at PyPy internals, so I don't think I could help much with that. The patch looks reasonable to me, but I suppose it does not fully work yet? |
Thanks @mattip. One more issue to fix #2146 (comment). I'm afraid, you might be the best person to fix that as well. |
If I use the suggestion by @mattip in https://bitbucket.org/pypy/pypy/issues/2482/cpyext-tp_basicsize-only-considers-first, I can get the test to pass, but it segfaults other tests. https://bitbucket.org/pypy/pypy/commits/8175c5e20480 mentions that
|
I'd like to briefly check in about the status of the PR -- are we stalled on landing improvements to PyPy? There are already some good improvements, so one option would be to merge part of the changes and leave the rest pending. |
Yes. I've marked a couple of tests (related to multiple inheritance) as CI is passing (with two expected failures), so we can merge right now to avoid any regressions in the future and work on fixing the multiple inheritance issue. |
Ok, will do as soon as the PR is merge-able (conflicts). |
This is ready now |
Merged, let's track future improvements in a separate PR. |
Tests are failing on master, for some reason. |
So the raised exception looks different than on CPython... |
Something something |
Should we mess with
|
Depends a bit on whether this is a PyPy thing, or whether it's a failure of pybind11 to not set |
If I'm reading this right, pybind11, since python 3.3 doesn't touch |
eval_file
as in [WIP] Test PyPy 3.6 on travis #1720 (comment)__qualname__
on PyPy3TODO:
Add a workaround for https://bitbucket.org/pypy/pypy/issues/2482/cpyext-tp_basicsize-only-considers-first. @jagerman added a workaround in Python multiple inheritance #693, but that seems to work only for PyPy 5.8 and not even PyPy 5.9. See PyPy 5.9.0 segfault under multiple inheritance #1130
Fix
test_stl_caster_vs_stl_bind
cc @mattip, @ax3l