returning Python Lists from C++
Paul F. Dubois
dubois1 at llnl.gov
Wed Jul 7 10:19:32 EDT 1999
Using CXX (part of the LLNL distribution at ftp-icf.llnl.gov/pub/python) you
do:
List w;
...
w.append(...);
...
return new_reference_to(w);
Mark Butterworth <mark.butterworth at cis.co.uk> wrote in message
news:tKGg3.149$FH1.16131 at newsr2.u-net.net...
> Can anyone give me a quick example of how to return a python list object
> from a C++ function?
>
>
More information about the Python-list
mailing list