Type Alias rustpython_vm::object::PyResult
source · pub type PyResult<T = PyObjectRef> = Result<T, PyBaseExceptionRef>;
Expand description
Use this type for functions which return a python object or an exception.
Both the python object and the python exception are PyObjectRef
types
since exceptions are also python objects.