Defining inheritance in C extensions

Martin von Loewis loewis at informatik.hu-berlin.de
Sat Nov 10 07:10:46 EST 2001


Timo Savola <timo.savola at iki.fi> writes:

> If my types are be compatible with their base types,
> PyArg_ParseTuple(args,"O!:abc",&basetype,&ptr) would do the checking
> for me, or does it check for the *exact* type?

I think it would require the exact type, in Python 2.2.

> Also, I like player with powerful RTTI. :)

There is no excuse for that :-) So please have a look at Python 2.2; I
think you'll find what you are looking for.

Regards,
Martin



More information about the Python-list mailing list