[C++-sig] R: Re: Boost.Python type registry
Nikolay Mladenov
nickm at sitius.com
Thu Oct 4 20:14:30 CEST 2007
I think that you can search the registry for entry with m_class_object
that matches
your PyObject's type or search the lvalue_chain(s) for a converter that
returns !=0.
But there is no api for that so far.
HTH,
Nikolay
jumpjoe at fastwebnet.it wrote:
>
> >AFAIK, there is nothing in the API to help you there. Boost.Python doesn't
> >work directly this way internally. It provides a way to test if an
> >instance holds a given type, but nothing to return the contained type
> >info.
>
> Is there at least a way to get a raw pointer to the wrapped object from a
> PyObject? I think extract<> is doing it.
>
> Cheers,
> Giovanni Beltrame
More information about the Cplusplus-sig
mailing list