Boost logo

Boost Users :

Subject: Re: [Boost-users] [python] how to call python's built-in type() function
From: Juraj Ivanèiæ (juraj.ivancic_at_[hidden])
Date: 2013-02-08 08:15:58


On 8.2.2013. 3:19, Eric Niebler wrote:
> In C++, I have a boost::python::object that is wrapping ... something.
> I'd like to find out what. If I were in python land, I'd call the
> built-in 'type' function on it. What do I do in C++?
>

You can use PyObject_Type() from Python API

http://docs.python.org/3/c-api/object.html?highlight=pyobject_type#PyObject_Type


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net