### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.7 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Data type routines »

# numpy.issubclass

`numpy.``issubclass_`(arg1, arg2)

  Determine if a class is a subclass of a second class.

  `issubclass_` is equivalent to the Python built-in `issubclass`, except that it returns False instead of raising a TypeError is one of the arguments is not a class.

  Parameters : | arg1 : class Input class. True is returned if arg1 is a subclass of arg2. arg2 : class or tuple of classes. Input class. If a tuple of classes, True is returned if arg1 is a subclass of any of the tuple elements.
  Returns : | out : bool Whether arg1 is a subclass of arg2 or not.

  See also

  `issubsctype`, `issubdtype`, `issctype`

  Examples

      >>> np.issubclass_(np.int32, np.int)
      True
      >>> np.issubclass_(np.int32, np.float)
      False

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.7 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Data type routines »