[C++-sig] how to return arbitrary (python-)objects from boost?

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Thu Apr 24 09:32:04 CEST 2008


> This, of course, has the obvious "missing feature" implication: Why doesn't BP 
> talk to sip? Any sip experts around to comment on what it would take?

A while ago I worked out a proof-of-principle for SWIG-Boost.Python
conversions. The files are here:

http://cctbx.svn.sourceforge.net/viewvc/cctbx/trunk/boost_adaptbx/

  swig_arg.hpp
  swig_args_ext.cpp
  tst_swig_args.py

Also look for "swig" in the SConscript.

I'm guessing something similar could work for SIP, too, but I've never
installed or used SIP.

Ralf



More information about the Cplusplus-sig mailing list