Aha yes that's much better, thank you<br><br>A<br><br><div><span class="gmail_quote">On 11/25/06, <b class="gmail_sendername">Stefan Seefeld</b> <<a href="mailto:seefeld@sympatico.ca">seefeld@sympatico.ca</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">anders langlands wrote:<br>> Can I change the max arguments limit for methods without recompiling
<br>> boost::python? I need an initializer for a 4x4 matrix, hence the need<br>> for 16 floats.<br><br>FWIW, I have used hand-coded construction / conversion code to generate<br>C++ containers ('Vector', here) from python lists, such as this:
<br><br>std::auto_ptr<Vector> construct_vector(bpl::list l)<br>{<br> long len = bpl::extract<long>(l.attr("__len__")());<br> std::auto_ptr<Vector> vector(new Vector(len));<br> for (long i = 0; i != len; ++i) vector->put(i, bpl::extract<double>(l[i]));
<br> return vector;<br>}<br><br>May be something similar would work for you, too ?<br><br>HTH,<br> Stefan<br><br><br>--<br><br> ...ich hab' noch einen Koffer in Berlin...<br>_______________________________________________
<br>C++-sig mailing list<br><a href="mailto:C++-sig@python.org">C++-sig@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/c++-sig">http://mail.python.org/mailman/listinfo/c++-sig</a><br></blockquote></div>
<br>