py_checkinstance method

bool py_checkinstance(
  1. py_Ref self,
  2. int type
)

Check if the object is an instance of the given type or its subclass. Raise TypeError if the check fails.

Implementation

bool py_checkinstance(
  py_Ref self,
  int type,
) {
  return _py_checkinstance(
    self,
    type,
  );
}