Runtime Data Attributes
frame.f_builtins
Built-in name namespace used by a frame, distinct from its local and global namespaces. Customized execution environments can supply a different mapping.
Formal Syntax & Structure
python syntaxpython
frame.f_builtinsReturn Value
dict
Value exposed by this attribute; availability and mutability depend on the owner as described.
Working Example
Example Snippetpython
import inspectdef f(): return inspect.currentframe().f_builtins['len'] is lenprint(f())