-
Notifications
You must be signed in to change notification settings - Fork 792
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 hasattr #2025
Pypy hasattr #2025
Conversation
The first commit here looks unrelated? |
Is removed now. was a leftover from testing. rust-numpy does not support the latest pyo3 version (or at least I couldn't get it to work). |
Add support for compiling polars for PyPy: - requires newer version of maturin - requires pyo3 0.15.1 with the following patch: Map "PyPyObject_HasAttr" to "PyObject_HasAttr" so hasattr works with PyPy: - PyO3/pyo3#2025 - Available at: https://github.com/ghuls/pyo3/tree/pypy_hasattr - Patch against latest commits on https://github.com/PyO3/pyo3 won't work for now, as rust-numpy 0.15 is not compatible with that version yet.
Add support for compiling polars for PyPy: - requires newer version of maturin - requires pyo3 0.15.1 with the following patch: Map "PyPyObject_HasAttr" to "PyObject_HasAttr" so hasattr works with PyPy: - PyO3/pyo3#2025 - Available at: https://github.com/ghuls/pyo3/tree/pypy_hasattr - Patch against latest commits on https://github.com/PyO3/pyo3 won't work for now, as rust-numpy 0.15 is not compatible with that version yet.
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.
Thanks!
CHANGELOG.md
Outdated
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
|
|||
- Add `Py::setattr` method. [#2009](https://github.com/PyO3/pyo3/pull/2009) | |||
- Add `PyCapsule`, exposing the [Capsule API](https://docs.python.org/3/c-api/capsule.html#capsules). [#1980](https://github.com/PyO3/pyo3/pull/1980) | |||
- Map `PyPyObject_HasAttr` to `PyObject_HasAttr` so `hasattr` works with PyPy. [#2025](https://github.com/PyO3/pyo3/pull/2025) |
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.
I'm going to force-push to move this to the ## Fixed
section.
…PyPy. Map "PyPyObject_HasAttr" to "PyObject_HasAttr" so hasattr works with PyPy. Solves: "undefined symbol: PyObject_HasAttr" when importing the library.
a0b70c6
to
5ecc715
Compare
Thank you for contributing to pyo3!
Please consider adding the following to your pull request:
Be aware the CI pipeline will check your pull request for the following:
cargo test
ormake test
if you need to test examples)make clippy
)cargo fmt
)black . --check
. You can install black withpip install black
)tox
; you can do run it usingmake test_py
.You can run a similar set of checks as the CI pipeline using
make test
.