Language and Compiler Modules

builtins

Exposes the standard built-in functions, types and exceptions through an explicit module namespace. Useful when a local variable shadows a built-in name. Do not modify the global builtins module merely to change a local binding.

Formal Syntax & Structure

python syntaxpython
import builtins

Return Value

module

Module namespace available through import; import is a statement, not a value-returning expression.

Working Example

Example Snippetpython
import builtinslist = "shopping"print(builtins.list(range(3)))
Python Reference