From python-cpp-sig Thu Apr 07 14:11:51 2011 From: Hans Meine Date: Thu, 07 Apr 2011 14:11:51 +0000 To: python-cpp-sig Subject: Re: [C++-sig] Avoiding implicit boost::python::extract<> conversions Message-Id: <201104071611.51319.hans_meine () gmx ! net> X-MARC-Message: https://marc.info/?l=python-cpp-sig&m=130218569621260 Am Donnerstag, 7. April 2011, um 16:02:47 schrieb Murray Cumming: > It looks like boost::python::extract::check() will happily succeed > on an int python object, and boost::python::extract::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? Sure, you can use the Python/C API (PyBool_Check etc.) HTH Hans _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig