MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / getResultFromProcess

Function getResultFromProcess

pythonwhat/tasks.py:299–305  ·  view source on GitHub ↗

Get a value from process, return tuple of value, res if succesful

(res, tempname, process)

Source from the content-addressed store, hash-verified

297
298
299def getResultFromProcess(res, tempname, process):
300 """Get a value from process, return tuple of value, res if succesful"""
301 if not isinstance(res, (UndefinedValue, Exception)):
302 value = getRepresentation(tempname, process)
303 return value, res
304 else:
305 return res, str(res)
306
307
308# decorator to automatically get value after running process task function

Callers 1

wrapperFunction · 0.85

Calls 1

getRepresentationFunction · 0.85

Tested by

no test coverage detected