Built-in
__builtin__
This module provides direct access to all ‘built-in’ identifiers of Python; for
example, __builtin__.open
is the full name for the built-in function
open()
.
builtins
This module provides direct access to all ‘built-in’ identifiers of Python; for
example, builtins.open
is the full name for the built-in function
open()
.
__builtins__
compat
if is_py2:
import __builtin__
builtins = __builtin__
elif is_py3:
import builtins
builtins = builtins
Usage
from .compat import builtins builtins.open