MCPcopy Index your code
hub / github.com/python/cpython / isbuiltin

Function isbuiltin

Lib/inspect.py:432–439  ·  view source on GitHub ↗

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

(object)

Source from the content-addressed store, hash-verified

430 return isinstance(object, types.CodeType)
431
432def isbuiltin(object):
433 """Return true if the object is a built-in function or method.
434
435 Built-in functions and methods provide these attributes:
436 __doc__ documentation string
437 __name__ original name of this function or method
438 __self__ instance to which a method is bound, or None"""
439 return isinstance(object, types.BuiltinFunctionType)
440
441def ismethodwrapper(object):
442 """Return true if the object is a method wrapper."""

Callers 3

isroutineFunction · 0.85
_finddocFunction · 0.85
_signature_is_builtinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…