The Return class is used to track the flow of objects from API call to API call.
It is used by the Command class to construct return values that can be traced through a call stack.
-
The
Return()constructor takes two arguments, both of which are mandatory.-
api_func - the API function that generated this return value. This should be an instance of the
functiontype. -
args - a tuple of the arguments passed to the
api_funcfunction.
-
-
Returninstances that were created with the sameapi_funcandargsparameters will compare (==) as equal.