Skip to content

how to keep_alive when returning a list or tuple? #816

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

You must be logged in to vote

You're in luck: @oremanj added a new feature in the latest version of nanobind that I think could be used to support your use case: https://nanobind.readthedocs.io/en/latest/api_core.html#_CPPv4I0EN8nanobind11call_policyE

Replies: 1 comment 1 reply

Comment options

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

Answer selected by wojdyr
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