mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-13 01:36:21 +00:00
enable *args and **kwargs notation (closes #190)
This commit is contained in:
@@ -43,12 +43,12 @@ void dog_bark(const Dog &dog) {
|
||||
}
|
||||
|
||||
bool test_callback1(py::object func) {
|
||||
func.call();
|
||||
func();
|
||||
return false;
|
||||
}
|
||||
|
||||
int test_callback2(py::object func) {
|
||||
py::object result = func.call("Hello", 'x', true, 5);
|
||||
py::object result = func("Hello", 'x', true, 5);
|
||||
return result.cast<int>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user