[C++-sig] Clearing lists in boost-python
charles75
smith.charles75 at yahoo.co.uk
Wed Jun 22 17:04:16 CEST 2011
Hi,
I've been trying to clear a list of dictionaries from a list without
success.
The code below is a simple example of what I'm trying to achieve.
dict a, b;
list mylist;
mylist.append(a);
mylist.append(b);
mylist.clear();
When I type in the last statement I get the error below from the linker
‘class boost::python::list’ has no member named ‘clear’.
Is there another way of clearing the list?
Thanks in advance for any help.
--
View this message in context: http://boost.2283326.n4.nabble.com/Clearing-lists-in-boost-python-tp3617273p3617273.html
Sent from the Python - c++-sig mailing list archive at Nabble.com.
More information about the Cplusplus-sig
mailing list