extension modules in C for python, check for korrekt Object
Torsten Mohr
tmohr at s.netic.de
Tue Jun 1 16:35:59 EDT 2004
Hi,
i write a set of extension modules for python in C.
I also use some new types that i defined there.
At the moment i write some methods that expect some
of these types as parameters. I now want to check
that the right types were given as parameters.
How can i do that?
PyArg_ParseTuple only checks that an object was
given as parameter, but not its type.
Do i need to check tp_name in the objects type?
Thanks for hints,
Torsten.
More information about the Python-list
mailing list