mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 15:54:12 +00:00
Allow pybind11::arg to have 0, false, or "" as default values.
This commit is contained in:
@@ -58,4 +58,5 @@ void init_ex11(py::module &m) {
|
||||
|
||||
using namespace py::literals;
|
||||
m.def("kw_func_udl", &kw_func, "x"_a, "y"_a=300);
|
||||
m.def("kw_func_udl_z", &kw_func, "x"_a, "y"_a=0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user