python-on-a-chip online compiler
PmFunc_s Struct Reference
Function obj. More...
#include <func.h>
Data Fields | |
PmObjDesc_t | od |
Object descriptor. | |
pPmCo_t | f_co |
Ptr to code obj. | |
pPmDict_t | f_attrs |
Ptr to attribute dict. | |
pPmDict_t | f_globals |
Ptr to globals dict. | |
pPmTuple_t | f_defaultargs |
Ptr to tuple holding default args. | |
pPmTuple_t | f_closure |
Ptr to tuple of cell values. |
Detailed Description
Function obj.
A function is like an instance of a code obj. Contains ptr to its code obj and has its own attributes dict.
The first (__main__) module that is executed has a function obj created for it to execute the bytecode which builds the module.
Definition at line 28 of file func.h.
Field Documentation
Generated on Tue Jul 12 2022 23:13:47 by 1.7.2