Closed nnop closed 3 months ago
Could you have a look at this issue? @pthom
Hello,
Thanks for your output.
how to use pybind11 literals _a instead of py::arg
I do not see the motivation for this, given that this is generated code. Can you please explain why you would want this?
If this is to save a few bytes in the generated code, I do not think it is worth the effort.
how to disable generating comments with the binding code?
Same question, what is your use case? Also, are you referring to the comment in the python stubs file, the C++ file, or both?
Thanks for you respondence and the update.
Now I mainly use litgen to generating an initial version of the binding code and handful modification to fullfill my work. For example, converting the CamelCase names to underscore_case.
Because many C++ functions exist in the form of output parameters, I need to wrap them with lambda functions, create temporary variables, and return them.
Also, considering return value policies and object life time, there's still some manual modification work involved. And I feel more confirmed in that way. Therefore, I hope to start with a relatively simple initial binding code.
Litgen is a powerful tool and is quite new to me. I think, as my understanding of it deepens, I will become less and less dependent on manually writing and modifying binding code.
Hi, Thanks for the great tool. It can save me a lot of tedious work when binding C++ code. I have two questions:
_a
instead ofpy::arg
?Didn't find that in the options code.