Skip to content

How do I convert from pyo3::ffi::PyFrameObject to pyo3::types::PyFrame? #2745

Answered by birkenfeld
LilyFoote asked this question in Questions
Discussion options

You must be logged in to vote

PyFrameObject is a PyObject, so if you don't need a PyFrame on the Rust side the easiest here is to just take *mut PyObject in the callback or to cast the *mut PyFrameObject using as *mut PyObject inside of it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LilyFoote
Comment options

LilyFoote Nov 18, 2022
Collaborator Author

Answer selected by LilyFoote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants