Skip to content

Equivalent of pybind11's dynamic_attr: desired? #17

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

You must be logged in to vote

Yes, this is currently missing. It should be relatively easy to add - you'll need to add dynamic_attr to nb_attr.h) allocate an extra flag in type_flags (nb_class.h) and then handle it in nb_type_new (nb_type.cpp)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by inducer
Comment options

You must be logged in to vote
0 replies
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