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

8 Feb
2013
8 Feb
'13
2:19 a.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
1:15 p.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_...
4398
Age (days ago)
4398
Last active (days ago)
1 comments
2 participants
participants (2)
-
Eric Niebler
-
Juraj Ivančić