Replies: 5 comments 3 replies
-
I don't think calling |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, stuck a bit: I found one example, but it uses yield: https://pyo3.rs/master/doc/src/pyo3/types/iterator.rs.html#157 |
Beta Was this translation helpful? Give feedback.
-
I'm not really sure what you're trying to do exactly, but I suppose you could try the following Lines 52 to 67 in 52dfc00 This will allow returning your struct to python where it can be used just like a generator. |
Beta Was this translation helpful? Give feedback.
-
Works perfect. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hi Just curious if the object I wish to 'yield' is not a struct but a |
Beta Was this translation helpful? Give feedback.
-
Hello,
Is it possible to call some python function which uses generator (would like to create it in rust part).
What is correct way to do yield(val) from pyo3 side?
Im afraid that calling from python could affect performance significantly.
Do you have any examples (with PyIterator?)?
Thank you,
Beta Was this translation helpful? Give feedback.
All reactions