View Source Pythonx.C.PyEval (Pythonx v0.2.3)

Python Exception

Summary

Functions

Return a dictionary of the builtins in the current execution frame, or the interpreter of the thread state if no frame is currently executing.

Return a description string, depending on the type of func.

Return the name of func if it is a function, class or instance object, else the name of funcs type.

Return a dictionary of the global variables in the current execution frame, or nil if no frame is currently executing.

Return a dictionary of the local variables in the current execution frame, or nil if no frame is currently executing.

Functions

@spec get_builtins() :: Pythonx.C.PyObject.borrowed()

Return a dictionary of the builtins in the current execution frame, or the interpreter of the thread state if no frame is currently executing.

Return value: Borrowed reference.

@spec get_func_desc(Pythonx.C.PyObject.t()) :: String.t()

Return a description string, depending on the type of func.

Return values include “()” for functions and methods, “ constructor”, “ instance”, and “ object”.

Concatenated with the result of PyEval.get_func_name/1, the result will be a description of func.

@spec get_func_name(Pythonx.C.PyObject.t()) :: String.t()

Return the name of func if it is a function, class or instance object, else the name of funcs type.

@spec get_globals() :: Pythonx.C.PyObject.borrowed() | nil

Return a dictionary of the global variables in the current execution frame, or nil if no frame is currently executing.

Return value: Borrowed reference.

@spec get_locals() :: Pythonx.C.PyObject.borrowed() | nil

Return a dictionary of the local variables in the current execution frame, or nil if no frame is currently executing.

Return value: Borrowed reference.