Henry Schreiner
Henry Schreiner
Another PyPy 3.8 issue: Before Python 3.8, `PyLong_AsLong` does not pick up on `obj.__index__`. PyPy 3.8 seems to trigger the old 3.7 and before behavior, rather than using `__index__` (at...
We can (and do) backport that behavior for 3.7 and before, but it should be supported by PyPy3.8 directly, I think.
Sure, ignore the failing Python 3.11 tests, I'm enabling 3.11 and the new PyPy in the same PR for testing, #3419. If you scroll to the bottom of https://github.com/pybind/pybind11/pull/3419/files, you...
Here's an old workaround for the difference in `PyIndex_Check`: https://github.com/pybind/pybind11/blob/a80b22374ae9398962fe9746f84edc7e7982f9f7/include/pybind11/cast.h#L135-L141 But I don't think that affects anything we are seeing here. This is the block implementing the Python 3.8 behavior...
`PyLong_AsLong` calls `__index__` first, and falls back to `__int__` if that's missing and produces a warning that the fallback is deprecated behavior in Python 3.8 & 3.9. In Python 3.10,...
I've downloaded PyPy 3.8 via the web to test locally and can't really use it because I'm getting spammed with "Cannot be opened because the developer cannot be verified" for...
I can try wget. Homebrew is just now updating to 7.3.7 (as in it's available now but not when I sent the last message), but `[email protected]` hasn't made it in...
So the current status: `PyLong_AsLong`: I've added the backported behavior for 2.7-3.7 to pypy for index. Shouldn't be harmful even if PyPy fixes this, just a bit wasteful. This fixes...
It's from this call: https://github.com/pybind/pybind11/blob/c8ce4b8df854a630a5f02192305c183299778b84/tests/test_exceptions.py#L120 Which triggers this call with the given string object as `s`: https://github.com/pybind/pybind11/blob/a80b22374ae9398962fe9746f84edc7e7982f9f7/tests/test_exceptions.cpp#L101 Which triggers this CAPI: https://github.com/pybind/pybind11/blob/a80b22374ae9398962fe9746f84edc7e7982f9f7/include/pybind11/pytypes.h#L361-L364
I'd guess it triggers this in PyPy, which looks fine to me: https://foss.heptapod.net/pypy/pypy/-/blob/cc9dd0b02ff856eadb38ea55ca1b7e7b5290c852/pypy/module/cpyext/pyerrors.py#L339-353