[C++-sig] Avoiding implicit boost::python::extract<> conversions

Murray Cumming murrayc at murrayc.com
Thu Apr 7 16:02:47 CEST 2011


It looks like boost::python::extract<bool>::check() will happily succeed
on an int python object, and boost::python::extract<int>::check() will
likewise succeed on a bool python object.

Is there an easy way to discover the actual python type so I can really
get the data I want in the correct type?

-- 
murrayc at murrayc.com
www.murrayc.com
www.openismus.com



More information about the Cplusplus-sig mailing list