Hi,

I have something like this in my code:
void function(numeric::array& ids)
{
    ...
    int x=extract<int>(ids[make_tuple(pos)]);
    ...
}

Now I plug in a numpy arra with dtype=np.int32.
I get:

No registered converter was able to produce a C++ rvalue of type int
from this Python object of type numpy.int32

It also happens for numpy.int64. But if I extract i.E. a double from a
numpy.float64 array, it works.

What can I do here?
Thanks!
Nathan
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to