[python] how to call python's built-in type() function

7 Feb
2013
7 Feb
'13
7:19 p.m.
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++? Thanks in advance, -- Eric Niebler Boost.org

8 Feb
8 Feb
6:15 a.m.
New subject: [python] how to call python's built-in type() function
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_...
4514
Age (days ago)
4514
Last active (days ago)
1 comments
2 participants
participants (2)
-
Eric Niebler
-
Juraj Ivančić