Runtime Types

types.BuiltinFunctionType — runtime type

Identifies built-in native callables such as len and bound built-in methods such as list.append on a list instance. BuiltinMethodType is the same type in CPython. A method descriptor on the class is a different kind of object; use callable() when all callable objects should qualify.

Formal Syntax & Structure

python syntaxpython
types.BuiltinFunctionType

Return Value

type

The class object types.BuiltinFunctionType; this reference documents the class identity, not a universal constructor signature.

Working Example

Example Snippetpython
import typesvalue = lenprint(isinstance(value, types.BuiltinFunctionType))
Python Reference