-
Notifications
You must be signed in to change notification settings - Fork 248
Closed
Description
The signature of _PyLong_AsByteArray
has changed in CPython 3.13 (python/cpython#114886). It accepts an additional with_exceptions
parameter.
The orjson
is using an old signature:
orjson/include/pyo3/pyo3-ffi/src/cpython/longobject.rs
Lines 64 to 71 in 1d8b352
#[cfg_attr(PyPy, link_name = "_PyPyLong_AsByteArrayO")] | |
pub fn _PyLong_AsByteArray( | |
v: *mut PyLongObject, | |
bytes: *mut c_uchar, | |
n: size_t, | |
little_endian: c_int, | |
is_signed: c_int, | |
) -> c_int; |
This signature might not be an issue in the native environment, but in WASM (which is more strict to the function signature), this causes an error.
Metadata
Metadata
Assignees
Labels
No labels