Aha yes that's much better, thank you
A
anders langlands wrote:
> Can I change the max arguments limit for methods without recompiling
> boost::python? I need an initializer for a 4x4 matrix, hence the need
> for 16 floats.
FWIW, I have used hand-coded construction / conversion code to generate
C++ containers ('Vector', here) from python lists, such as this:
std::auto_ptr<Vector> construct_vector(bpl::list l)
{
long len = bpl::extract<long>(l.attr("__len__")());
std::auto_ptr<Vector> vector(new Vector(len));
for (long i = 0; i != len; ++i) vector->put(i, bpl::extract<double>(l[i]));
return vector;
}
May be something similar would work for you, too ?
HTH,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
_______________________________________________
C++-sig mailing list
C++-sig@python.org
http://mail.python.org/mailman/listinfo/c++-sig