T
Torsten Mohr
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.
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.