pybind11
pybind11 copied to clipboard
Better examples for args and kwargs
I would love to see good examples on how to parse the args and kwargs arguments in the documentation.
Thank you!
Have you had a look at tests/test_kwargs_and_defaults.cpp ?
py::args and py::kwargs are essentially just lists and dictionaries. That means you would use them the same way as you would use a list/dictionary.
No further discussion. Closing.