Skip to content
Discussion options

You must be logged in to vote

Not sure I appreciate the tone. nb::list() does the same thing as list() in Python, meaning it creates a copy. You can also borrow via nb::borrow<nb::list>() if you know an object already has the right type.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wjakob
Comment options

Answer selected by smurfix
@smurfix
Comment options

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