[C++-sig] Re: accessing the python type system
seefeld at sympatico.ca
Wed May 28 15:02:05 CEST 2003
David Abrahams wrote:
> Stefan Seefeld <stefan.seefeld at orthosoft.ca> writes:
>>are there any functions/operators in boost.python to
>>let me access the python type system from within C++ ?
>>For example holding two python objects I'd like to test
>>whether one's type is derived from the other's type,
>>whether they are derived from a given type, i.e. things
>>like 'type', 'isinstance', etc.
> These are more functions in the same category as len(). See my reply
> to Philippe Fremy today on this list.
What about a 'type object' similar to 'type_info', i.e. with
a 'name()' accessor and comparison operators ?
More information about the Cplusplus-sig