inspect.isbuiltin()

inspect.isbuiltin(object)[source]

Return true if the object is a built-in function or method.

Built-in functions and methods provide these attributes:
__doc__ documentation string __name__ original name of this function or method __self__ instance to which a method is bound, or None