-
I can't seem to find the right way to wrap a function with a PyObject * return value. I'm missing something simple I think.
And in python3:
I get:
Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's not supported at the moment. However, you can easily make your own type caster for it. There is a type caster for |
Beta Was this translation helpful? Give feedback.
It's not supported at the moment. However, you can easily make your own type caster for it. There is a type caster for
nb::handle
which borrows instead of stealing the reference, a somewhat questionable choice in retrospect.