[C++-sig] [c++-sig]how to insert C++ object into python list?

甜瓜 littlesweetmelon at gmail.com
Fri Sep 21 04:28:43 CEST 2007


Hi! I am sorry for asking this newbie question, but I really cannot
find any clue. ^_^
In my project, I use class_<> exports a c++ class 'MyRegion'. Some c++
functions will generate a series of 'MyRegion' objects and insert them
into a boost::python::list object as return value. But
boost::python::list only accepts boost::python::object when inserting.
What should I do?

Thank you!

---
ShenLei



More information about the Cplusplus-sig mailing list