docstring_options.hpp header
+ control the content of docstrings.
+
+ to_python_converter.hpp,
+ default_call_policies,
+ ResultConverter,
+ CallPolicies and some others.
+ Efforts were made not to have interface breaking changes.
+ ![]() |
Home | Libraries | People | FAQ | More | -
Copyright © 2002-2005 Joel de Guzman, David Abrahams
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt ) @@ -93,10 +93,10 @@ code takes on the look of a kind of declarative interface definition language (IDL).
-Following C/C++ tradition, let's start with the "hello, world". A C++ Function: @@ -112,10 +112,10 @@
#include <boost/python.hpp> -using namespace boost::python; -BOOST_PYTHON_MODULE(hello) +BOOST_PYTHON_MODULE(hello_ext) { + using namespace boost::python; def("greet", greet); }@@ -126,23 +126,29 @@
->>> import hello +>>> import hello_ext >>> print hello.greet() hello, world
-
- Next stop... Building your Hello World module - from start to finish... -
++
++ Next stop... Building your Hello World + module from start to finish... +
++
+
Last revised: May 18, 2007 at 15:45:45 GMT |
-+ | Last revised: November 07, 2007 at 03:34:24 GMT |
+