Skip to content

How to wrap a function with a PyObject * return value? #417

Answered by wjakob
pemsley asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

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

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