pitrou commented on PR #5070: URL: https://github.com/apache/arrow-rs/pull/5070#issuecomment-1808598964
Unfortunately, looking at the PyO3 PyCapsule-wrapping APIs, this probably can't work, because PyO3 creates its own boxed structure for the capsule pointer: https://docs.rs/pyo3/latest/src/pyo3/types/capsule.rs.html#115-119 Non-Rust implementations will expect the capsule pointer to point to a `ArrowSchema` or `ArrowArray` struct, but they will get a pointer to some arbitrary Rust structure instead. This seems to make PyO3's PyCapsule wrapper generally impractical for communicating with non-Rust runtimes. @milesgranger @birkenfeld Is my assessment above correct? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
