Skip to content

Commit b2bbf97

Browse files
authored
Merge pull request #2025 from ghuls/pypy_hasattr
Pypy hasattr
2 parents fc7a03e + 5ecc715 commit b2bbf97

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131
- Remove `PyType::is_instance`, which is unintuitive; instead of `typ.is_instance(obj)`, use `obj.is_instance(typ)`. [#1985](https://github.com/PyO3/pyo3/pull/1985)
3232
- Remove all functionality deprecated in PyO3 0.14. [#2007](https://github.com/PyO3/pyo3/pull/2007)
3333

34+
### Fixed
35+
36+
- Fix undefined symbol for `PyObject_HasAttr` on PyPy. [#2025](https://github.com/PyO3/pyo3/pull/2025)
37+
3438
## [0.15.1] - 2021-11-19
3539

3640
### Added

src/ffi/object.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ extern "C" {
280280
#[cfg_attr(PyPy, link_name = "PyPyObject_SetAttr")]
281281
pub fn PyObject_SetAttr(arg1: *mut PyObject, arg2: *mut PyObject, arg3: *mut PyObject)
282282
-> c_int;
283+
#[cfg_attr(PyPy, link_name = "PyPyObject_HasAttr")]
283284
pub fn PyObject_HasAttr(arg1: *mut PyObject, arg2: *mut PyObject) -> c_int;
284285
#[cfg_attr(PyPy, link_name = "PyPyObject_SelfIter")]
285286
pub fn PyObject_SelfIter(arg1: *mut PyObject) -> *mut PyObject;

0 commit comments

Comments
 (0)