builtins – builtin functions and exceptions
All builtin functions and exceptions are described here. They are also
available via builtins module.
Functions and types
- abs()
- all()
- any()
- bin()
- classbool
- callable()
- chr()
- classmethod()
- compile()
- classcomplex
- delattr(obj, name)
The argument name should be a string, and this function deletes the named attribute from the object given by obj.
- classdict
- dir()
- divmod()
- enumerate()
- eval()
- exec()
- filter()
- classfloat
- classfrozenset
- getattr()
- globals()
- hasattr()
- hash()
- hex()
- id()
- input()
- classint
- isinstance()
- issubclass()
- iter()
- len()
- classlist
- locals()
- map()
- max()
- classmemoryview
See CPython documentation:
memoryview.
- min()
- next()
- classobject
- oct()
- open()
- ord()
- pow()
- print()
- property()
- range()
- repr()
- reversed()
- round()
- classset
- setattr()
- classslice
The slice builtin is the type that slice objects have.
- sorted()
- staticmethod()
- classstr
- sum()
- super()
- classtuple
- type()
- zip()
Exceptions
- exceptionAssertionError
- exceptionAttributeError
- exceptionException
- exceptionImportError
- exceptionIndexError
- exceptionKeyboardInterrupt
See CPython documentation:
KeyboardInterrupt.See also in the context of Soft Bricking (failure to boot).
- exceptionKeyError
- exceptionMemoryError
- exceptionNameError
- exceptionNotImplementedError
- exceptionOSError
- exceptionRuntimeError
- exceptionStopIteration
- exceptionSyntaxError
- exceptionSystemExit
See CPython documentation:
SystemExit.On non-embedded ports (i.e. Windows and Unix), an unhandled
SystemExitexits the MicroPython process in a similar way to CPython.On embedded ports, an unhandled
SystemExitcurrently causes a Soft Reset of MicroPython.
- exceptionValueError
- exceptionZeroDivisionError