[C++-sig] Using symbols from other python extension modules?

2009-07-30 Thread Hans Meine
Hi, when developing boost::python or SIP-based extension modules, we have repeatedly had the need to use C++ classes or functions from other modules. (E.g. I might have a foocmodule and a corresponding unit test module.) A good use case is a boost::python-like registry (with a slightly differen

[C++-sig] Trouble converting numpy.float32 to C++

2009-07-30 Thread Paul F. Kunz
I'm using Boost.Python to wrap a C++ class that takes a std::vector & as argument.. Using scitbx/include/scitbx/boost_python/container_conversions.h as suggested by the Boost.Python FAQ, I can correctly convert and use a Python sequence generated by numpy with numpy.arange(10, dtype=numpy.float64