You might want to use wrapper functions in C++
boost::python::object
gender_getter(const FaceObject& obj)
{
if(obj.gender == NULL) return Py_None;
else return obj.gender;
}Note: its been a bit since I used Boost.Python heavily. The syntax could be incorrect, but I hope this gives you a general idea.
--Jeff Van Voorst _______________________________________________ Cplusplus-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/cplusplus-sig
