| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| cast | ||
| pycpp | ||
| classes.rst | ||
| embedding.rst | ||
| exceptions.rst | ||
| functions.rst | ||
| misc.rst | ||
| smart_ptrs.rst |
This adds support for a `py::args_kw_only()` annotation that can be
specified between `py::arg` annotations to indicate that any following
arguments are keyword-only. This allows you to write:
m.def("f", [](int a, int b) { /* ... */ },
py::arg("a"), py::args_kw_only(), py::arg("b"));
and have it work like Python 3's:
def f(a, *, b):
# ...
with respect to how `a` and `b` arguments are accepted (that is, `a` can
be positional or by keyword; `b` can only be specified by keyword).
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| cast | Loading commit data... | |
| pycpp | Loading commit data... | |
| classes.rst | Loading commit data... | |
| embedding.rst | Loading commit data... | |
| exceptions.rst | Loading commit data... | |
| functions.rst | Loading commit data... | |
| misc.rst | Loading commit data... | |
| smart_ptrs.rst | Loading commit data... |