Skip to content

Commit 160af8f

Browse files
committed
Call Py_Is function on GraalPy
1 parent 0d77778 commit 160af8f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

newsfragments/5121.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Enable vectorcall methods on GraalPy
2+
Call Py_Is function on GraalPy

pyo3-ffi/src/object.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ pub struct PyVarObject {
147147
// skipped private _PyVarObject_CAST
148148

149149
#[inline]
150-
#[cfg(not(all(PyPy, Py_3_10)))]
150+
#[cfg(not(all(GraalPy, PyPy, Py_3_10)))]
151151
#[cfg_attr(docsrs, doc(cfg(all())))]
152152
pub unsafe fn Py_Is(x: *mut PyObject, y: *mut PyObject) -> c_int {
153153
(x == y).into()
154154
}
155155

156-
#[cfg(all(PyPy, Py_3_10))]
156+
#[cfg(all(GraalPy, PyPy, Py_3_10))]
157157
#[cfg_attr(docsrs, doc(cfg(all())))]
158158
extern "C" {
159159
#[cfg_attr(PyPy, link_name = "PyPy_Is")]

0 commit comments

Comments
 (0)