func Namespace Reference

Provides PyMite's func module. More...


Functions

def co_names
 Returns the names tuple of the function/module object.
def co_consts
 Returns the constants tuple of the function/module object.


Detailed Description

Provides PyMite's func module.


Function Documentation

def func::co_consts (   f  ) 

Returns the constants tuple of the function/module object.

__NATIVE__
PmReturn_t retval = PM_RET_OK;
pPmObj_t pfunc;

/* If wrong number of args, raise TypeError */
if (NATIVE_GET_NUM_ARGS() != 1)
{
    PM_RAISE(retval, PM_RET_EX_TYPE);
    return retval;
}

pfunc = NATIVE_GET_LOCAL(0);
NATIVE_SET_TOS((pPmObj_t)((pPmFunc_t)pfunc)->f_co->co_consts);

return retval;

def func::co_names (   f  ) 

Returns the names tuple of the function/module object.

__NATIVE__
PmReturn_t retval = PM_RET_OK;
pPmObj_t pfunc;

/* If wrong number of args, raise TypeError */
if (NATIVE_GET_NUM_ARGS() != 1)
{
    PM_RAISE(retval, PM_RET_EX_TYPE);
    return retval;
}

pfunc = NATIVE_GET_LOCAL(0);
NATIVE_SET_TOS((pPmObj_t)((pPmFunc_t)pfunc)->f_co->co_names);

return retval;


Generated on Wed Feb 24 13:37:03 2010 for Python-on-a-chip by  doxygen 1.5.9