Reflexão¶
-
PyObject*
PyEval_GetBuiltins()¶ - Return value: Borrowed reference.
Retorna um dicionário dos componentes internos no quadro de execução atual ou o interpretador do estado do encadeamento, se nenhum quadro estiver em execução no momento.
-
PyObject*
PyEval_GetLocals()¶ - Return value: Borrowed reference.
Return a dictionary of the local variables in the current execution frame, or NULL if no frame is currently executing.
-
PyObject*
PyEval_GetGlobals()¶ - Return value: Borrowed reference.
Return a dictionary of the global variables in the current execution frame, or NULL if no frame is currently executing.
-
PyFrameObject*
PyEval_GetFrame()¶ - Return value: Borrowed reference.
Return the current thread state’s frame, which is NULL if no frame is currently executing.
-
int
PyFrame_GetLineNumber(PyFrameObject *frame)¶ Retorna o número da linha do frame atualmente em execução.
-
int
PyEval_GetRestricted()¶ If there is a current frame and it is executing in restricted mode, return true, otherwise false.
-
const char*
PyEval_GetFuncName(PyObject *func)¶ Retorna o nome de func se for uma função, classe ou objeto de instância, senão o nome do tipo da func.
-
const char*
PyEval_GetFuncDesc(PyObject *func)¶ Retorna uma sequência de caracteres de descrição, dependendo do tipo de func. Os valores de retorno incluem “()” para funções e métodos, “construtor”, “instância” e “objeto”. Concatenado com o resultado de
PyEval_GetFuncName(), o resultado será uma descrição de func.
