Hi,
I wrote a function to speedup a part of my Python code that manipulates
python list objects. I do stg like:
void Foo(numeric::array& X, numeric::array& Y, bool flag, list
max_points, list min_points,
list left_max_points, list
right_max_points){
...
...
int Lmax =
boost::python::extract<int>(max_points.attr("__len__")());
...
...
}
It compiles, but it crashes with segmentation fault, at the line where I
try get the length of max_points,
which is a list.
I don't understand why !
any help ?
Thanks in advance
Chris
_______________________________________________
Cplusplus-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/cplusplus-sig