反射?
-
PyObject*
PyEval_GetBuiltins()? - Return value: Borrowed reference.
返回當前執行幀中內置函數的字典,如果當前沒有幀正在執行,則返回線程狀態的解釋器。
-
PyFrameObject*
PyEval_GetFrame()? - Return value: Borrowed reference.
返回當前線程狀態的幀,如果沒有當前執行的幀則返回
NULL。
-
int
PyFrame_GetLineNumber(PyFrameObject?*frame)? 返回 frame 當前正在執行的行號。
-
const char*
PyEval_GetFuncDesc(PyObject?*func)? 根據 func 的類型返回描述字符串。 返回值包括函數和方法的 "()", " constructor", " instance" 和 " object"。 與
PyEval_GetFuncName()的結果連接,結果將是 func 的描述。
