[C++-sig] iterate a boost::python::list

Hans Roessler hansroessler at yahoo.de
Thu May 21 23:08:03 CEST 2009

How can I iterate in C++ over a boost::python::list?

According to http://www.boost.org/doc/libs/1_39_0/libs/python/doc/v2/list.html it has no begin() and end() functions.
Neither a size() function that would allow to call pop(size()-1). Neither an isEmpty() function that would allow to call pop(0) until the list is empty.

I'm sure I'm missing something trivial. Can somebody help me?



More information about the Cplusplus-sig mailing list