func.py
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 def co_names(f):
00024 """__NATIVE__
00025 PmReturn_t retval = PM_RET_OK;
00026 pPmObj_t pfunc;
00027
00028 /* If wrong number of args, raise TypeError */
00029 if (NATIVE_GET_NUM_ARGS() != 1)
00030 {
00031 PM_RAISE(retval, PM_RET_EX_TYPE);
00032 return retval;
00033 }
00034
00035 pfunc = NATIVE_GET_LOCAL(0);
00036 NATIVE_SET_TOS((pPmObj_t)((pPmFunc_t)pfunc)->f_co->co_names);
00037
00038 return retval;
00039 """
00040 pass
00041
00042
00043
00044
00045
00046 def co_consts(f):
00047 """__NATIVE__
00048 PmReturn_t retval = PM_RET_OK;
00049 pPmObj_t pfunc;
00050
00051 /* If wrong number of args, raise TypeError */
00052 if (NATIVE_GET_NUM_ARGS() != 1)
00053 {
00054 PM_RAISE(retval, PM_RET_EX_TYPE);
00055 return retval;
00056 }
00057
00058 pfunc = NATIVE_GET_LOCAL(0);
00059 NATIVE_SET_TOS((pPmObj_t)((pPmFunc_t)pfunc)->f_co->co_consts);
00060
00061 return retval;
00062 """
00063 pass
00064
00065
00066