From: "Pearu Peterson" <pearu at cens.ioc.ee> > > Hi, > > What would be the best way to determine if > > PyObject *obj > > is an instance of a Boost.Python V2 wrapped class, say A? The library does it by checking its metaclass. That is, does obj->ob_type->ob_type == boost::python::objects::class_metatype().get() -Dave