Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-05-21 07:10:05


There are python scripts in the libs/python/src directory to generate
support for as many arguments as you might need.

If you want to take a python list as an argument to a C++ function, you can
use an argument of type boost::python::list (from boost/python/object.hpp)
and use from_python(l[n], boost::python::type<desired-type>()) to retrieve
the C++ object.


----- Original Message -----
From: "Xavier Warin" <xavier.warin_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, May 21, 2001 5:15 AM
Subject: [boost] Question on BPL and list ...

> Hi !
> I want to use BPL to connect some C++ classes to python.
> It seems to me that the number of imput of a function to be connected
> between python and C++ is limited to 10.
> Does anybody know if it is easy to increase this number ?
> Another possibility is to gather some inputs with the same structure in
> a list and use this list to limit the number of inputs of the function i
> want to map.
> So my question is : is it easy to recover the objects of a list by BPL
> ? I haven't seen anything like this in the examples on Boost web site.
> Thank you for your help !!
> Best regards
> Xavier Warin
> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
> Your use of Yahoo! Groups is subject to

Boost list run by bdawes at, gregod at, cpdaniel at, john at