Re: [C++-sig] Trouble converting data from numpy.array to c++

2010-05-18 Thread Paul F. Kunz
> On Tue, 11 May 2010 12:24:42 +0200, "Ger van Diepen" > said: > AFAIK there are no standard converters for the numpy scalar types to > C++ types. In pyrap it is solved by having explicit converters for > numpy scalar types to C++ types (see pyrap.googlecode.com). > Cheers, Ger Cou

[C++-sig] Boost.Python Problem

2010-05-18 Thread alexandre monti
Hello ! I've just installed Boost.Python on my iMac intel, but i've a bug. This is the code : object main_module((handle<>(borrowed(PyImport_AddModule("__main__"); object main_namespace = main_module.attr("__dict__"); As you can see it is very, very, very minimal and simple, and i've an excep

[C++-sig] Callbacks in PyBindGen

2010-05-18 Thread cammm
So I've just started playing with pybindgen and having used pyobject plus and boost::python before I have to say, it is a breathe of fresh air. Simple, explicit, fast and written in python. I'm not a fan of automatic coverage / source code parsing, explicit description of the python interface doe