enable *args and **kwargs notation (closes #190)

This commit is contained in:
Wenzel Jakob
2016-05-08 14:34:09 +02:00
parent e611823e4c
commit 6c03beb867
8 changed files with 57 additions and 11 deletions

View File

@@ -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>();
}