[C++-sig] iterate through boot::python::list

David Abrahams dave at boost-consulting.com
Fri Mar 7 21:41:45 CET 2003


"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> writes:

> You can also do this:
>
> #include <boost/python/detail/api_placeholder.hpp>
>
> int l = boost::python::len(some_list_or_dict);
>
>> Nice project for someone who wants to make a contribution.
>
> Expanding api_placeholder.hpp into a comprehensive solution constitutes another
> nice project for someone wanting to make a contribution.

Absolutely, and I would support that idea.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list