Skip to content

Commit 112cd54

Browse files
committed
Call Py_Is function on GraalPy
1 parent 9bf9af0 commit 112cd54

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

newsfragments/1.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
Enable vectorcall methods on GraalPy
22
Provide compatibility shims in PyTuple macros for PyPy and GraalPy
3+
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
@@ -137,13 +137,13 @@ pub struct PyVarObject {
137137
// skipped private _PyVarObject_CAST
138138

139139
#[inline]
140-
#[cfg(not(all(PyPy, Py_3_10)))]
140+
#[cfg(not(all(GraalPy, PyPy, Py_3_10)))]
141141
#[cfg_attr(docsrs, doc(cfg(all())))]
142142
pub unsafe fn Py_Is(x: *mut PyObject, y: *mut PyObject) -> c_int {
143143
(x == y).into()
144144
}
145145

146-
#[cfg(all(PyPy, Py_3_10))]
146+
#[cfg(all(GraalPy, PyPy, Py_3_10))]
147147
#[cfg_attr(docsrs, doc(cfg(all())))]
148148
extern "C" {
149149
#[cfg_attr(PyPy, link_name = "PyPy_Is")]

0 commit comments

Comments
 (0)