All types supported by Python have a validation method (i.e. PyList_Check) that allows you to check if an arbitrary is a PyObject*specific type.
How can I implement this for my own types? I did not find anything good on the Internet for this, although it seems like a pretty normal thing that I want to do.
Besides, maybe I'm just looking terribly at the big source trees, but I canβt find the implementation PyList_Checkor any of its companions in the Python source (2.5) for life .
source
share