I'm using boost::python::extract<> to convert the items in a boost::python::list to floats. My problem is with int's in python - extract<float>
seems to regard int->float as a valid conversion, however I only want true float objects. Is there a way to force extract<> to be more conservative?
extract<float> value(o);
if (value.check()) {
// This is true both for floats and ints
a = value();
}