diff --git a/doc/news.html b/doc/news.html index b0e4667b..7b033554 100644 --- a/doc/news.html +++ b/doc/news.html @@ -29,6 +29,30 @@
arg class Nikolay Mladenov which supplies
+ the ability to wrap functions that can be called with ommitted
+ arguments in the middle:
+
+void f(int x = 0, double y = 3.14, std::string z = std::string("foo"));
+
+BOOST_PYTHON_MODULE(test)
+{
+ def("f", f
+ , (arg("x", 0), arg("y", 3.14), arg("z", "foo")));
+}
+
+And in Python:
++>>> import test +>>> f(0, z = "bar") +>>> f(z = "bar", y = 0.0) ++ + Thanks, Nikolay!
return_arg policy from Added the new return_arg policy from Nikolay Mladenov. Thanks,
Nikolay!Revised - 18 March, 2003 + 1 August 2003
© Copyright Dave