[C++-sig] Adding custom C API functionality to boost.python modules
Marcus Jannes
jannes80 at hotmail.de
Mon Feb 11 17:18:07 CET 2008
Yes, but i am trying to wrap a function which takes a function pointer which isn't possible according to the boost.python faq. I am working on something suggested in the book: "Python scripting for computational science", where a C API approach is used.
----------------------------------------
> From: meine at informatik.uni-hamburg.de
> To: c++-sig at python.org
> Date: Mon, 11 Feb 2008 16:52:44 +0100
> Subject: Re: [C++-sig] Adding custom C API functionality to boost.python modules
>
> 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
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
_________________________________________________________________
Windows Live Fotogalerie: So einfach organisieren Sie Ihre Fotos!
http://get.live.com/photogallery/overview
More information about the Cplusplus-sig
mailing list