python-on-a-chip online compiler

Dependencies:   mbed TSI

Embed: (wiki syntax)

« Back to documentation index

PmFunc_s Struct Reference

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

Ptr to attribute dict.

Definition at line 37 of file func.h.

Ptr to tuple of cell values.

Definition at line 49 of file func.h.

Ptr to code obj.

Definition at line 34 of file func.h.

Ptr to tuple holding default args.

Definition at line 44 of file func.h.

Ptr to globals dict.

Definition at line 40 of file func.h.

Object descriptor.

Definition at line 31 of file func.h.