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. | |
| 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;
1.5.9