[C++-sig] embedding an extended python module

Ingo Lütkebohle iluetkeb at gmail.com
Wed Jan 12 15:47:55 CET 2005


Using a PyObject:

  #include <boost/python/call.hpp>
  ...
  call<return-type>(pyobject, args)

Or wrap your PyObject as an object
(http://www.boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html)
and invoke it as a callable.

Ingo



More information about the Cplusplus-sig mailing list