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

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

Oh! Sorry... boost::python::list can accept "MyRegion" arguments directly!! @_@

boost::python::list list_obj;
MyRegion rgn(..);
list_obj.append(rgn);  // It is OK!

My question changes to how does boost python wrap rgn into a pyObject
when appending to a python list?


More information about the Cplusplus-sig mailing list