title: Implementing PyMyType_Check methods with Python C API?
body: <p>All the Python-provided types have a check method (i.e., <code>PyList_Check</code>) that allows you to check if an arbitrary <code>PyObject*</code> is actually a specific type.</p>
  
  <p>How can I implement this for my own types?  I haven't found anything good online for this, though it seems like a pretty normal thing to want to do.</p>
  
  <p>Also, maybe I'm just terrible at looking through large source trees, but I cannot for the life of me find the implementation of <code>PyList_Check</code> or any of it's companions in the Python (2.5) source.</p>