[C++-sig] Adding custom C API functionality to boost.python modules

Hans Meine meine at informatik.uni-hamburg.de
Mon Feb 11 16:52:44 CET 2008

Am Montag, 11. Februar 2008 16:41:10 schrieb Marcus Jannes:
> I just put the Py_InitModule3() function at the end of the
> BOOST_PYTHON_MODULE definitions, which seems to compile fine, not sure if
> it will work runtime though.

You know that you can just use
  bp::def("myfunc", &myfunc_impl_using_C_api);
to export your functions with the BPL, right?

Ciao, /  /
    /  / ANS

More information about the Cplusplus-sig mailing list