pybind11/include/pybind11
Jason Rhinelander be0d804523 Support keyword-only arguments
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).
2020-04-26 18:07:51 +02:00
..
detail Add is_final to disallow inheritance from Python 2020-04-26 09:46:44 +02:00
attr.h Support keyword-only arguments 2020-04-26 18:07:51 +02:00
buffer_info.h support for readonly buffers (#863) (#1466) 2019-11-24 08:33:05 +01:00
cast.h Support keyword-only arguments 2020-04-26 18:07:51 +02:00
chrono.h Added ability to convert from datetime.date to system_clock::time_point (#1848) 2019-07-19 11:28:48 +02:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Add -Wdeprecated to test suite and fix associated warnings (#1191) 2017-11-22 17:37:41 -04:00
eigen.h stl.h: propagate return value policies to type-specific casters (#1455) 2018-07-17 16:56:26 +02:00
embed.h Fix build with -Wmissing-prototypes (#1954) 2019-10-17 10:43:33 +02:00
eval.h Force hidden visibility on pybind code 2017-08-14 11:40:38 -04:00
functional.h Replace a usage of C++14 language features with C++11 code (#1833) 2019-07-10 10:13:56 +02:00
iostream.h quiet clang warning by adding default move ctor (#1821) 2019-07-15 16:16:14 +02:00
numpy.h Fix compilation with clang-cl 2020-04-26 09:47:34 +02:00
operators.h Access C++ hash functions from Python and vice versa (#1034) 2017-08-30 14:22:00 +02:00
options.h Move internal headers into detail subdirectory 2017-08-17 04:06:35 +02:00
pybind11.h Support keyword-only arguments 2020-04-26 18:07:51 +02:00
pytypes.h support for readonly buffers (#863) (#1466) 2019-11-24 08:33:05 +01:00
stl_bind.h stl_bind: add binding for std::vector::clear (#2074) 2020-01-17 01:16:56 +01:00
stl.h Adds type_caster support for std::deque. (#1609) 2018-11-16 06:45:19 +01:00