[C++-sig] Boost.Python type registry

Giovanni Beltrame jumpjoe at fastwebnet.it
Wed Oct 3 15:46:09 CEST 2007

Hello everybody,
I am trying to understand how the Boost.Python type registry works...

What I want to do is, given a python object (let's say a PyObject*), determine
its wrapper C++ type_info.
Theoretically, what I want to do is going name->PyObject->C++ type. Notice
that the traditional extract<T> won't work for me as I want to determine which 
type is being wrapped.

I know Boost.Python is doing this internally in some way, but I haven't 
figured it out yet.

Can anybody help?

Thanks in advance,
Giovanni Beltrame
TEC-EDM Research Fellow
European Space Agency

More information about the Cplusplus-sig mailing list