pybind11 icon indicating copy to clipboard operation
pybind11 copied to clipboard

Better examples for args and kwargs

Open ghost opened this issue 8 years ago • 2 comments

I would love to see good examples on how to parse the args and kwargs arguments in the documentation.

Thank you!

ghost avatar Apr 13 '18 00:04 ghost

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.

yeganer avatar Apr 13 '18 11:04 yeganer

No further discussion. Closing.

bstaletic avatar Jul 23 '20 10:07 bstaletic